[issue2770] hg revert, when file is not tracked, returns exit code 0

Lasse Vågsæther Karlsen <bugs@mercurial.selenic at mercurial.selenic.com Lasse Vågsæther Karlsen <bugs@mercurial.selenic at mercurial.selenic.com
Sun Apr 17 19:38:04 UTC 2011


New submission from Lasse Vågsæther Karlsen <lasse at vkarlsen.no>:

To reproduce:

hg init
hg revert xyz

The last hg command there will return an exit code of 0, at the same time that 
it prints "xyz: no such file in rev 000000000000"

I assume the command is supposed to return a non-0 exit code in this case 
since the documentation specifically says "Returns 0 on success."

----------
messages: 16080
nosy: lassevk
priority: bug
status: unread
title: hg revert, when file is not tracked, returns exit code 0

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2770>
____________________________________________________


More information about the Mercurial-devel mailing list