debugcreatestreamclonebundle: use single quotes around command hint
authortimeless <timeless@mozdev.org>
Thu, 14 Apr 2016 15:17:15 +0000
changeset 28961 2e58dc022caa
parent 28960 14e683d6b273
child 28962 ad2cd2ef25d9
debugcreatestreamclonebundle: use single quotes around command hint Windows command lines use double quotes to quote arguments with spaces. This change is in a series to unify around using single quotes around commands, and double quotes around interior arguments.
mercurial/commands.py
tests/test-bundle.t
--- a/mercurial/commands.py	Sat Apr 16 09:02:37 2016 -0700
+++ b/mercurial/commands.py	Thu Apr 14 15:17:15 2016 +0000
@@ -1387,7 +1387,7 @@
     # Packed bundles are a pseudo bundle format for now.
     if cgversion == 's1':
         raise error.Abort(_('packed bundles cannot be produced by "hg bundle"'),
-                          hint=_('use "hg debugcreatestreamclonebundle"'))
+                          hint=_("use 'hg debugcreatestreamclonebundle'"))
 
     if opts.get('all'):
         if dest:
@@ -4236,7 +4236,7 @@
                     extra += ' --date %s' % opts['date']
                 if opts.get('log'):
                     extra += ' --log'
-                hint=_('use hg resolve and hg graft --continue%s') % extra
+                hint=_("use 'hg resolve' and 'hg graft --continue%s'") % extra
                 raise error.Abort(
                     _("unresolved conflicts, can't continue"),
                     hint=hint)
@@ -6319,7 +6319,7 @@
     if not opts.get('rev') and p2 != nullid:
         # revert after merge is a trap for new users (issue2915)
         raise error.Abort(_('uncommitted merge with no revision specified'),
-                         hint=_('use "hg update" or see "hg help revert"'))
+                         hint=_("use 'hg update' or see 'hg help revert'"))
 
     ctx = scmutil.revsingle(repo, opts.get('rev'))
 
--- a/tests/test-bundle.t	Sat Apr 16 09:02:37 2016 -0700
+++ b/tests/test-bundle.t	Thu Apr 14 15:17:15 2016 +0000
@@ -260,7 +260,7 @@
 
   $ hg -R test bundle -t packed1 packed.hg
   abort: packed bundles cannot be produced by "hg bundle"
-  (use "hg debugcreatestreamclonebundle")
+  (use 'hg debugcreatestreamclonebundle')
   [255]
 
 packed1 is produced properly