record: return code from underlying commit
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Wed, 12 Oct 2016 12:22:54 +0200
changeset 30158 1baa0e2cfc37
parent 30157 df224038c516
child 30159 fb5504d7b2c9
record: return code from underlying commit
hgext/record.py
tests/test-record.t
--- 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)
 
--- a/tests/test-record.t	Fri Oct 14 09:52:38 2016 +0200
+++ b/tests/test-record.t	Wed Oct 12 12:22:54 2016 +0200
@@ -77,6 +77,7 @@
   examine changes to 'empty-rw'? [Ynesfdaq?] n
   
   no changes to record
+  [1]
 
   $ hg tip -p
   changeset:   -1:000000000000