Patchwork [2,of,2,V2] record: return code from underlying commit

login
register
mail settings
Submitter Philippe Pepiot
Date Oct. 14, 2016, 7:55 a.m.
Message ID <617220c6b76e9faf873d.1476431758@sh71.tls.logilab.fr>
Download mbox | patch
Permalink /patch/17084/
State Accepted
Headers show

Comments

Philippe Pepiot - Oct. 14, 2016, 7:55 a.m.
# HG changeset patch
# User Philippe Pepiot <philippe.pepiot@logilab.fr>
# Date 1476267774 -7200
#      Wed Oct 12 12:22:54 2016 +0200
# Node ID 617220c6b76e9faf873dbacf69baff0196b52d92
# Parent  9eb1db967e9db678e06723b26966b06f060ef36e
# EXP-Topic record-return-code
record: return code from underlying commit
Pierre-Yves David - Oct. 14, 2016, 11:08 a.m.
On 10/14/2016 09:55 AM, Philippe Pepiot wrote:
> # HG changeset patch
> # User Philippe Pepiot <philippe.pepiot@logilab.fr>
> # Date 1476267774 -7200
> #      Wed Oct 12 12:22:54 2016 +0200
> # Node ID 617220c6b76e9faf873dbacf69baff0196b52d92
> # Parent  9eb1db967e9db678e06723b26966b06f060ef36e
> # EXP-Topic record-return-code
> record: return code from underlying commit

These two are pushed, thanks.

Cheers,

Patch

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