Patchwork [4,of,4,V2] record: make hg record always use the non curses interface

login
register
mail settings
Submitter Laurent Charignon
Date May 14, 2015, 12:26 a.m.
Message ID <aff8455c5fe274c932b9.1431563167@lcharignon-mbp.local>
Download mbox | patch
Permalink /patch/9063/
State Superseded
Commit 29be0450b667ddd66a7d1356793f1f40c19fdf33
Headers show

Comments

Laurent Charignon - May 14, 2015, 12:26 a.m.
# HG changeset patch
# User Laurent Charignon <lcharignon@fb.com>
# Date 1431562115 25200
#      Wed May 13 17:08:35 2015 -0700
# Node ID aff8455c5fe274c932b9d5ce52b0fab9ff310903
# Parent  cb2f0824776ea5d964813ab4bc5213e03b4e45fc
record: make hg record always use the non curses interface

Before this patch, hg record was running hg commit -i, therefore with the
experimental.crecord=True flag, hg record was actually launching the curses
record interface. Some of our users could be confused by that.
This patch makes the hg record command set this flag to False, ensuring that
hg record never shows the curses interface.
commit -i, shelve -i and revert -i remain unchanged and use the curses
interface if the experimental.crecord flag is set

Patch

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