changeset 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 df224038c516
children fb5504d7b2c9
files hgext/record.py tests/test-record.t
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
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)
 
--- 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