revert --all (again)

Adrian Buehlmann adrian at cadifra.com
Fri Jun 10 18:26:56 CDT 2011


On 2011-06-11 00:51, Matt Mackall wrote:
> On Sat, 2011-06-11 at 00:25 +0200, Adrian Buehlmann wrote:
...
>>
>>   $ hg revert -r 2
>>   abort: revision 946c41063461 is not the currently checked-out revision
> 
> Well, that's not technically why we're aborting. We're aborting because
> we don't want people to accidentally lose all changes because they
> fat-fingered the enter key.

But then, the current

  abort: no files or directories specified

is a red herring too.

So we need to come up with a better text for

  abort: did you fat finger the enter key?

:-)

>>   (use update to check out that revision, or use --all to force changing all files)
> 
> This hint is decent, if a bit verbose.

  $ hg par -q
  4:8765e19eea07

  $ hg revert -r 2
  abort: reverting to revision 946c41063461 changes all files
  (use update to check out that revision, or use --all to force)


More information about the Mercurial-devel mailing list