[PATCH 1 of 1 V5] revert: improve hint on abort if no files were specified

Kevin Bullock kbullock+mercurial at ringworld.org
Mon Jun 20 11:25:19 CDT 2011


On Jun 18, 2011, at 1:43 AM, Adrian Buehlmann wrote:

> On 2011-06-17 21:42, Matt Mackall wrote:
>> On Fri, 2011-06-17 at 13:56 +0200, Adrian Buehlmann wrote:
>>> clean, revert to non-parent:
>>> 
>>>  BEFORE:
>>>    $ hg revert -d 2011-05-05
>>>    Found revision 7423 from Thu May 05 19:56:05 2011 +0200
>>>    abort: no files or directories specified
>>>    (use --all to revert all files)
>>> 
>>>  NEW:
>>>    $ hg revert -d 2011-05-05
>>>    Found revision 7423 from Thu May 05 19:56:05 2011 +0200
>>>    abort: no files or directories specified
>>>    (use --all to revert all files, or 'hg update -r 7423' to update)
>> 
>> discard?
> 
> What's to be discarded if the working directory is all clean?

All the changes between the specified revision and the current state. I agree, I think discard is appropriate here.

pacem in terris / mir / shanti / salaam / heiwa
Kevin R. Bullock



More information about the Mercurial-devel mailing list