diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -186,9 +186,7 @@ def dorecord(ui, repo, commitfunc, cmdsu # Make all of the pathnames absolute. newfiles = [repo.wjoin(nf) for nf in newfiles] - commitfunc(ui, repo, *newfiles, **opts) - - return 0 + return commitfunc(ui, repo, *newfiles, **opts) finally: # 5. finally restore backed-up files try: