# HG changeset patch # User Philippe Pepiot # Date 2016-10-12 10:22:54 # Node ID 1baa0e2cfc372a17ff9e67738cfd1374dfe64946 # Parent df224038c5161e23888f7f71cfbd38d88fb0de4d record: return code from underlying commit diff --git a/hgext/record.py b/hgext/record.py --- a/hgext/record.py +++ b/hgext/record.py @@ -70,7 +70,7 @@ def record(ui, repo, *pats, **opts): 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) diff --git a/tests/test-record.t b/tests/test-record.t --- a/tests/test-record.t +++ b/tests/test-record.t @@ -77,6 +77,7 @@ Select no files examine changes to 'empty-rw'? [Ynesfdaq?] n no changes to record + [1] $ hg tip -p changeset: -1:000000000000