Patchwork [4,of,4] fetch: use single quotes around command hint

login
register
mail settings
Submitter timeless@gcc2-power8.osuosl.org
Date April 14, 2016, 3:24 p.m.
Message ID <d37ba5c323520cbae960.1460647485@gcc2-power8.osuosl.org>
Download mbox | patch
Permalink /patch/14617/
State Accepted
Headers show

Comments

timeless@gcc2-power8.osuosl.org - April 14, 2016, 3:24 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1460647211 0
#      Thu Apr 14 15:20:11 2016 +0000
# Node ID d37ba5c323520cbae960cc7961687ca4d2344fd2
# Parent  b83f18c6ba2beba79fab16898371d6371dd94c7f
# EXP-Topic quotes
# Available At bb://timeless/mercurial-crew
#              hg pull bb://timeless/mercurial-crew -r d37ba5c32352
fetch: 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.
Matt Mackall - April 16, 2016, 9:38 p.m.
On Thu, 2016-04-14 at 15:24 +0000, timeless@gcc2-power8.osuosl.org wrote:
> # HG changeset patch
> # User timeless <timeless@mozdev.org>
> # Date 1460647211 0
> #      Thu Apr 14 15:20:11 2016 +0000
> # Node ID d37ba5c323520cbae960cc7961687ca4d2344fd2
> # Parent  b83f18c6ba2beba79fab16898371d6371dd94c7f
> # EXP-Topic quotes
> # Available At bb://timeless/mercurial-crew
> #              hg pull bb://timeless/mercurial-crew -r d37ba5c32352
> fetch: use single quotes around command hint

These are queued for default, thanks.

-- 
Mathematics is the supreme nostalgia of our time.

Patch

diff -r b83f18c6ba2b -r d37ba5c32352 hgext/fetch.py
--- a/hgext/fetch.py	Thu Apr 14 15:19:57 2016 +0000
+++ b/hgext/fetch.py	Thu Apr 14 15:20:11 2016 +0000
@@ -61,7 +61,7 @@ 
         branchnode = None
     if parent != branchnode:
         raise error.Abort(_('working directory not at branch tip'),
-                         hint=_('use "hg update" to check out branch tip'))
+                         hint=_("use 'hg update' to check out branch tip"))
 
     wlock = lock = None
     try:
diff -r b83f18c6ba2b -r d37ba5c32352 tests/test-fetch.t
--- a/tests/test-fetch.t	Thu Apr 14 15:19:57 2016 +0000
+++ b/tests/test-fetch.t	Thu Apr 14 15:20:11 2016 +0000
@@ -339,7 +339,7 @@ 
   (branches are permanent and global, did you want a bookmark?)
   $ hg -R n2 fetch -m merge n1
   abort: working directory not at branch tip
-  (use "hg update" to check out branch tip)
+  (use 'hg update' to check out branch tip)
   [255]
 
 parent should be 0 (fetch did not update or merge anything)