Patchwork [1,of,5] record: make record use commit -i

login
register
mail settings
Submitter Laurent Charignon
Date March 12, 2015, 10 p.m.
Message ID <ef97f47b7ce0a0394369.1426197641@dev919.prn2.facebook.com>
Download mbox | patch
Permalink /patch/8029/
State Accepted
Headers show

Comments

Laurent Charignon - March 12, 2015, 10 p.m.
# HG changeset patch
# User Laurent Charignon <lcharignon@fb.com>
# Date 1426114451 25200
#      Wed Mar 11 15:54:11 2015 -0700
# Node ID ef97f47b7ce0a0394369a6424176cd9d3c0d4397
# Parent  7cf9a9e0cf893e7ae82dc576a03c843fd6640438
record: make record use commit -i

Patch

diff --git a/hgext/record.py b/hgext/record.py
--- a/hgext/record.py
+++ b/hgext/record.py
@@ -49,7 +49,8 @@ 
 
     This command is not available when committing a merge.'''
 
-    cmdutil.dorecord(ui, repo, commands.commit, 'commit', False, *pats, **opts)
+    opts["interactive"] = True
+    commands.commit(ui, repo, *pats, **opts)
 
 def qrefresh(origfn, ui, repo, *pats, **opts):
     if not opts['interactive']: