[PATCH] record: update help to describe ui.interface

Eloi Morlaas eloimorlaas at fb.com
Fri Feb 24 16:22:02 UTC 2017


# HG changeset patch
# User eloimorlaas <eloimorlaas at fb.com>
# Date 1487877797 28800
#      Thu Feb 23 11:23:17 2017 -0800
# Node ID c870e1aa3828c0aaca3d1d56d758e09a66788bc9
# Parent  96eaefd350aec869047d9e2da90913ae698463df
record: update help to describe ui.interface

hg help record was not accurate if using another interface than the text one

diff --git a/hgext/record.py b/hgext/record.py
--- a/hgext/record.py
+++ b/hgext/record.py
@@ -42,7 +42,8 @@
 
     See :hg:`help dates` for a list of formats valid for -d/--date.
 
-    You will be prompted for whether to record changes to each
+    If using the text interface (see :hg: `help config`),
+    you will be prompted for whether to record changes to each
     modified file, and for files with multiple changes, for each
     change to use. For each query, the following responses are
     possible::
diff --git a/tests/test-qrecord.t b/tests/test-qrecord.t
--- a/tests/test-qrecord.t
+++ b/tests/test-qrecord.t
@@ -39,9 +39,10 @@
   
       See 'hg help dates' for a list of formats valid for -d/--date.
   
-      You will be prompted for whether to record changes to each modified file,
-      and for files with multiple changes, for each change to use. For each
-      query, the following responses are possible:
+      If using the text interface (see :hg: 'help config'), you will be prompted
+      for whether to record changes to each modified file, and for files with
+      multiple changes, for each change to use. For each query, the following
+      responses are possible:
   
         y - record this change
         n - skip this change
diff --git a/tests/test-record.t b/tests/test-record.t
--- a/tests/test-record.t
+++ b/tests/test-record.t
@@ -22,9 +22,10 @@
   
       See 'hg help dates' for a list of formats valid for -d/--date.
   
-      You will be prompted for whether to record changes to each modified file,
-      and for files with multiple changes, for each change to use. For each
-      query, the following responses are possible:
+      If using the text interface (see :hg: 'help config'), you will be prompted
+      for whether to record changes to each modified file, and for files with
+      multiple changes, for each change to use. For each query, the following
+      responses are possible:
   
         y - record this change
         n - skip this change


More information about the Mercurial-devel mailing list