How I deleted my new files with good help from Mercurial

Jørgen Austvik jaustvik at acm.org
Mon Jun 28 15:16:55 UTC 2010


On Mon, Jun 28, 2010 at 11:01, Nicolas Dumazet <nicdumz at gmail.com> wrote:
>> [Here I think that "hg backout" should not do anything when I do not
>> write to the file. ]
>
> Ouch.
>
> protip: when you want to abort something with vim, take the habit to
> use ":cq" to exit with a non-zero exit code. It's easy to learn,
> faster than "qa!", and will save you in a lot of cases.

Thanks.

> $ svn ci # vim prompted, ":q!" on empty message
> Log message unchanged or not specified
> (a)bort, (c)ontinue, (e)dit:

> What is really happening for hg?

I understand the technical difficulties

> I think that we "could" check the timestamp of the temporary file or
> something of the like. But... why would we bother users that want to
> use the standard message?

So that smocks like me do not delete their files? ;-)

I think adding abort/continue/edit from SVN would be a small usability
improvement, though.

-J



More information about the Mercurial mailing list