changeset 29970:5ad164698626

histedit: use single quotes in use warning
author timeless <timeless@mozdev.org>
date Tue, 20 Sep 2016 23:45:25 +0000
parents 862ab1cdb218
children e65d33182fd4
files hgext/histedit.py tests/test-histedit-arguments.t tests/test-histedit-drop.t tests/test-histedit-obsolete.t tests/test-histedit-outgoing.t
diffstat 5 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/histedit.py	Tue Sep 20 23:45:15 2016 +0000
+++ b/hgext/histedit.py	Tue Sep 20 23:45:25 2016 +0000
@@ -854,7 +854,7 @@
     roots = list(repo.revs("roots(%ln)", outgoing.missing))
     if 1 < len(roots):
         msg = _('there are ambiguous outgoing revisions')
-        hint = _('see "hg help histedit" for more detail')
+        hint = _("see 'hg help histedit' for more detail")
         raise error.Abort(msg, hint=hint)
     return repo.lookup(roots[0])
 
@@ -1290,7 +1290,7 @@
         root = ctxs[0] # list is already sorted by repo.set
         if not root.mutable():
             raise error.Abort(_('cannot edit public changeset: %s') % root,
-                             hint=_('see "hg help phases" for details'))
+                             hint=_("see 'hg help phases' for details"))
     return [c.node() for c in ctxs]
 
 def ruleeditor(repo, ui, actions, editcomment=""):
@@ -1402,7 +1402,7 @@
         raise error.ParseError(_('missing rules for changeset %s') %
                 node.short(missing[0]),
                 hint=_('use "drop %s" to discard, see also: '
-                       '"hg help -e histedit.config"')
+                       "'hg help -e histedit.config'")
                        % node.short(missing[0]))
 
 def adjustreplacementsfrommarkers(repo, oldreplacements):
--- a/tests/test-histedit-arguments.t	Tue Sep 20 23:45:15 2016 +0000
+++ b/tests/test-histedit-arguments.t	Tue Sep 20 23:45:25 2016 +0000
@@ -169,7 +169,7 @@
   > pick 08d98a8350f3 4 five
   > EOF
   hg: parse error: missing rules for changeset c8e68270e35a
-  (use "drop c8e68270e35a" to discard, see also: "hg help -e histedit.config")
+  (use "drop c8e68270e35a" to discard, see also: 'hg help -e histedit.config')
   [255]
 
 Test that extra revisions are detected
--- a/tests/test-histedit-drop.t	Tue Sep 20 23:45:15 2016 +0000
+++ b/tests/test-histedit-drop.t	Tue Sep 20 23:45:25 2016 +0000
@@ -151,7 +151,7 @@
   > pick ee283cb5f2d5 e
   > EOF
   hg: parse error: missing rules for changeset a4f7421b80f7
-  (use "drop a4f7421b80f7" to discard, see also: "hg help -e histedit.config")
+  (use "drop a4f7421b80f7" to discard, see also: 'hg help -e histedit.config')
   $ hg --config histedit.dropmissing=True histedit  cb9a9f314b8b --commands - 2>&1 << EOF | fixbundle
   > EOF
   hg: parse error: no rules provided
--- a/tests/test-histedit-obsolete.t	Tue Sep 20 23:45:15 2016 +0000
+++ b/tests/test-histedit-obsolete.t	Tue Sep 20 23:45:25 2016 +0000
@@ -299,7 +299,7 @@
   
   $ hg histedit -r '.~2'
   abort: cannot edit public changeset: cb9a9f314b8b
-  (see "hg help phases" for details)
+  (see 'hg help phases' for details)
   [255]
 
 
--- a/tests/test-histedit-outgoing.t	Tue Sep 20 23:45:15 2016 +0000
+++ b/tests/test-histedit-outgoing.t	Tue Sep 20 23:45:25 2016 +0000
@@ -130,7 +130,7 @@
   
   $ HGEDITOR=cat hg -q histedit --outgoing '../r'
   abort: there are ambiguous outgoing revisions
-  (see "hg help histedit" for more detail)
+  (see 'hg help histedit' for more detail)
   [255]
 
   $ hg -q update -C 2
@@ -147,7 +147,7 @@
   
   $ HGEDITOR=cat hg -q histedit --outgoing '../r#default'
   abort: there are ambiguous outgoing revisions
-  (see "hg help histedit" for more detail)
+  (see 'hg help histedit' for more detail)
   [255]
 
   $ cd ..