[PATCH 2 of 2] record: return code from underlying commit
Philippe Pepiot
philippe.pepiot at logilab.fr
Thu Oct 13 08:32:29 EDT 2016
# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1476267774 -7200
# Wed Oct 12 12:22:54 2016 +0200
# Node ID c2e91a572e36b7c9fab8832f210d2d06bf695672
# Parent fa75185b8901e58d4b1117985e9f3f20e89c4e01
# EXP-Topic record-return-code
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
More information about the Mercurial-devel
mailing list