revert --all (again)

Adrian Buehlmann adrian at cadifra.com
Thu Jun 16 15:34:04 CDT 2011


On 2011-06-16 21:45, Laurens Holst wrote:
> Op 16-06-11 06:58, Na'Tosha Bard schreef:
>> On Sat, Jun 11, 2011 at 12:25 AM, Adrian Buehlmann <adrian at cadifra.com
>> <mailto:adrian at cadifra.com>> wrote:
>>
>>
>>      $ hg revert
>>      abort: no files or directories specified
>>      (use --all to revert all files) 
>>
>>
>> Maybe unrelated, but I remember a couple of developers on my team
>> getting hit with revert-when-they-needed-update somehow when we
>> switched to Mercurial.  I *really* think the text here should indicate
>> something more like "use --all to discard changes to all files", etc. 
>> "Discard" is a good word because it makes the ears perk up -- "Discard
>> . . . that means throw away . . . I won't be able to get them back?!".
> 
> I agree "discard changes" is much better than "revert", it is normal
> English instead of something inbetween advanced English and jargon, and
> much more clearly gets the point (and warning) across.

Did you see my patch
http://selenic.com/pipermail/mercurial-devel/2011-June/032542.html

and did you think about all the cases?

The current revert command is not just for discarding changes. Which is
one of the aspects that makes is so complicated.



More information about the Mercurial-devel mailing list