addremove command always returns 0

Andrey Somov py4fun at
Wed Feb 1 12:15:22 CST 2012

Hi all,
the 'addremove' command always returns 0, even when all the provided files
have been rejected.
(I have noticed it running the CommandServer.)

Should the last line of the help be changed into "Returns 0 on success." ?

def addremove(ui, repo, *pats, **opts):
   """add all new files, delete all missing files
   Returns 0 if all files are successfully added.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Mercurial-devel mailing list