Mercurial > public > mercurial-scm > hg-stable
diff hgext/record.py @ 30158:1baa0e2cfc37
record: return code from underlying commit
author | Philippe Pepiot <philippe.pepiot@logilab.fr> |
---|---|
date | Wed, 12 Oct 2016 12:22:54 +0200 |
parents | d5883fd055c6 |
children | 7074589cf22a |
line wrap: on
line diff
--- a/hgext/record.py Fri Oct 14 09:52:38 2016 +0200 +++ b/hgext/record.py Wed Oct 12 12:22:54 2016 +0200 @@ -70,7 +70,7 @@ backup = ui.backupconfig('experimental', 'crecord') try: ui.setconfig('experimental', 'crecord', False, 'record') - commands.commit(ui, repo, *pats, **opts) + return commands.commit(ui, repo, *pats, **opts) finally: ui.restoreconfig(backup)