evolve: use single quotes in usage messages stable
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 28 Oct 2016 17:15:57 -0700
branchstable
changeset 1756 a7dcfff8c4a9
parent 1755 6c78a5470583
child 1757 86e71a0b3319
evolve: use single quotes in usage messages Mercurial core has moved in this direction, so let's follow.
hgext/evolve.py
tests/test-evolve.t
tests/test-obsolete.t
tests/test-prev-next.t
tests/test-prune.t
tests/test-stabilize-conflict.t
tests/test-stabilize-result.t
tests/test-touch.t
tests/test-tutorial.t
tests/test-uncommit.t
--- a/hgext/evolve.py	Fri Oct 28 17:11:43 2016 -0700
+++ b/hgext/evolve.py	Fri Oct 28 17:15:57 2016 -0700
@@ -689,7 +689,7 @@
     if repo['.'].obsolete():
         ui.warn(_('working directory parent is obsolete!\n'))
         if (not ui.quiet) and obsolete.isenabled(repo, commandopt):
-            ui.warn(_('(use "hg evolve" to update to its successor)\n'))
+            ui.warn(_("(use 'hg evolve' to update to its successor)\n"))
 
 @eh.wrapcommand("update")
 @eh.wrapcommand("pull")
@@ -1945,8 +1945,8 @@
             _evolvestatewrite(repo, {'current': orig.node()})
             repo.ui.write_err(_('evolve failed!\n'))
             repo.ui.write_err(
-                _('fix conflict and run "hg evolve --continue"'
-                  ' or use "hg update -C ." to abort\n'))
+                _("fix conflict and run 'hg evolve --continue'"
+                  " or use 'hg update -C .' to abort\n"))
             raise
 
 def _solvebumped(ui, repo, bumped, dryrun=False, confirm=False,
@@ -2002,7 +2002,7 @@
             repo.opener.write('graftstate', bumped.hex() + '\n')
             repo.ui.write_err(_('evolution failed!\n'))
             repo.ui.write_err(
-                _('fix conflict and run "hg evolve --continue"\n'))
+                _("fix conflict and run 'hg evolve --continue'\n"))
             raise
     # Create the new commit context
     repo.ui.status(_('computing new diff\n'))
@@ -2364,7 +2364,7 @@
                 ui.warn(_("ambigious next (unstable) changeset:\n"))
                 for c in aspchildren:
                     displayer.show(repo[c])
-                ui.warn(_('(run "hg evolve --rev REV" on one of them)\n'))
+                ui.warn(_("(run 'hg evolve --rev REV' on one of them)\n"))
                 return 1
             else:
                 cmdutil.bailifchanged(repo)
@@ -2508,7 +2508,7 @@
             if not cp.mutable():
                 # note: createmarkers() would have raised something anyway
                 raise error.Abort('cannot prune immutable changeset: %s' % cp,
-                                 hint='see "hg help phases" for details')
+                                 hint="see 'hg help phases' for details")
             precs.append(cp)
         if not precs:
             raise error.Abort('nothing to prune')
@@ -2832,7 +2832,7 @@
         updatebookmarks(newid)
         if not repo[newid].files():
             ui.warn(_("new changeset is empty\n"))
-            ui.status(_('(use "hg prune ." to remove it)\n'))
+            ui.status(_("(use 'hg prune .' to remove it)\n"))
         tr.close()
     finally:
         lockmod.release(tr, lock, wlock)
--- a/tests/test-evolve.t	Fri Oct 28 17:11:43 2016 -0700
+++ b/tests/test-evolve.t	Fri Oct 28 17:15:57 2016 -0700
@@ -115,7 +115,7 @@
   1 public 
   $ hg prune 1
   abort: cannot prune immutable changeset: 7c3bad9141dc
-  (see "hg help phases" for details)
+  (see 'hg help phases' for details)
   [255]
   $ hg log -r 1 --template '{rev} {phase} {obsolete}\n'
   1 public 
@@ -1248,7 +1248,7 @@
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ hg uncommit --all
   new changeset is empty
-  (use "hg prune ." to remove it)
+  (use 'hg prune .' to remove it)
   $ glog -r "18::"
   @  26:044804d0c10d@default(draft) add j1
   |
@@ -1435,7 +1435,7 @@
   merging newfile
   warning: conflicts while merging newfile! (edit, then use 'hg resolve --mark')
   evolve failed!
-  fix conflict and run "hg evolve --continue" or use "hg update -C ." to abort
+  fix conflict and run 'hg evolve --continue' or use 'hg update -C .' to abort
   abort: unresolved merge conflicts (see hg help resolve)
   [255]
 
--- a/tests/test-obsolete.t	Fri Oct 28 17:11:43 2016 -0700
+++ b/tests/test-obsolete.t	Fri Oct 28 17:15:57 2016 -0700
@@ -131,7 +131,7 @@
   summary:     add obsol_c
   
   working directory parent is obsolete!
-  (use "hg evolve" to update to its successor)
+  (use 'hg evolve' to update to its successor)
   $ mkcommit d # 5 (on 3)
   1 new unstable changesets
   $ qlog -r 'obsolete()'
@@ -701,7 +701,7 @@
   $ hg up --hidden 2
   1 files updated, 0 files merged, 1 files removed, 0 files unresolved
   working directory parent is obsolete!
-  (use "hg evolve" to update to its successor)
+  (use 'hg evolve' to update to its successor)
   $ hg export 9468a5f5d8b2 | hg import -
   applying patch from stdin
   1 new unstable changesets
--- a/tests/test-prev-next.t	Fri Oct 28 17:11:43 2016 -0700
+++ b/tests/test-prev-next.t	Fri Oct 28 17:15:57 2016 -0700
@@ -200,7 +200,7 @@
   ambigious next (unstable) changeset:
   [4] added c
   [5] added d
-  (run "hg evolve --rev REV" on one of them)
+  (run 'hg evolve --rev REV' on one of them)
   [1]
   $ hg evolve -r 5
   move:[5] added d
--- a/tests/test-prune.t	Fri Oct 28 17:11:43 2016 -0700
+++ b/tests/test-prune.t	Fri Oct 28 17:15:57 2016 -0700
@@ -85,7 +85,7 @@
 
   $ hg prune 0
   abort: cannot prune immutable changeset: 1f0dee641bb7
-  (see "hg help phases" for details)
+  (see 'hg help phases' for details)
   [255]
   $ hg debugobsolete
   9d206ffc875e1bc304590549be293be36821e66c 0 {47d2a3944de8b013de3be9578e8e344ea2e6c097} (Sat Dec 15 00:00:00 1979 +0000) {'user': 'blah'}
--- a/tests/test-stabilize-conflict.t	Fri Oct 28 17:11:43 2016 -0700
+++ b/tests/test-stabilize-conflict.t	Fri Oct 28 17:15:57 2016 -0700
@@ -129,7 +129,7 @@
   merging babar
   warning: conflicts while merging babar! (edit, then use 'hg resolve --mark')
   evolve failed!
-  fix conflict and run "hg evolve --continue" or use "hg update -C ." to abort
+  fix conflict and run 'hg evolve --continue' or use 'hg update -C .' to abort
   abort: unresolved merge conflicts (see hg help resolve)
   [255]
   $ hg resolve -l
@@ -219,7 +219,7 @@
   was merge successful (yn)? n
   merging babar failed!
   evolve failed!
-  fix conflict and run "hg evolve --continue" or use "hg update -C ." to abort
+  fix conflict and run 'hg evolve --continue' or use 'hg update -C .' to abort
   abort: unresolved merge conflicts (see hg help resolve)
   [255]
   $ hg resolve -l
--- a/tests/test-stabilize-result.t	Fri Oct 28 17:11:43 2016 -0700
+++ b/tests/test-stabilize-result.t	Fri Oct 28 17:15:57 2016 -0700
@@ -84,7 +84,7 @@
   merging a
   warning: conflicts while merging a! (edit, then use 'hg resolve --mark')
   evolve failed!
-  fix conflict and run "hg evolve --continue" or use "hg update -C ." to abort
+  fix conflict and run 'hg evolve --continue' or use 'hg update -C .' to abort
   abort: unresolved merge conflicts (see hg help resolve)
   [255]
   $ hg revert -r 'unstable()' a
@@ -223,7 +223,7 @@
   $ hg up --hidden 15
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   working directory parent is obsolete!
-  (use "hg evolve" to update to its successor)
+  (use 'hg evolve' to update to its successor)
   $ mv a a.old
   $ echo 'jungle' > a
   $ cat a.old >> a
@@ -336,7 +336,7 @@
   $ hg up --hidden 15
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   working directory parent is obsolete!
-  (use "hg evolve" to update to its successor)
+  (use 'hg evolve' to update to its successor)
   $ echo 'gotta break' >> a
   $ hg amend
   2 new divergent changesets
--- a/tests/test-touch.t	Fri Oct 28 17:11:43 2016 -0700
+++ b/tests/test-touch.t	Fri Oct 28 17:15:57 2016 -0700
@@ -34,7 +34,7 @@
   $ hg up --hidden 1
   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   working directory parent is obsolete!
-  (use "hg evolve" to update to its successor)
+  (use 'hg evolve' to update to its successor)
   $ hg log -G
   o  3:[0-9a-f]{12} ab (re)
   
--- a/tests/test-tutorial.t	Fri Oct 28 17:11:43 2016 -0700
+++ b/tests/test-tutorial.t	Fri Oct 28 17:15:57 2016 -0700
@@ -741,14 +741,14 @@
   searching for changes
   no changes found
   working directory parent is obsolete!
-  (use "hg evolve" to update to its successor)
+  (use 'hg evolve' to update to its successor)
 
 now let's see where we are, and update to the successor
 
   $ hg parents
   bf1b0d202029 (draft): animals
   working directory parent is obsolete!
-  (use "hg evolve" to update to its successor)
+  (use 'hg evolve' to update to its successor)
   $ hg evolve
   update:[8] animals
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
--- a/tests/test-uncommit.t	Fri Oct 28 17:11:43 2016 -0700
+++ b/tests/test-uncommit.t	Fri Oct 28 17:15:57 2016 -0700
@@ -240,7 +240,7 @@
   8 files updated, 0 files merged, 1 files removed, 0 files unresolved
   (leaving bookmark touncommit-bm)
   working directory parent is obsolete!
-  (use "hg evolve" to update to its successor)
+  (use 'hg evolve' to update to its successor)
   $ hg --config extensions.purge= purge
   $ hg uncommit -I 'set:added() and e'
   2 new divergent changesets
@@ -285,7 +285,7 @@
   $ hg up -C 3 --hidden
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   working directory parent is obsolete!
-  (use "hg evolve" to update to its successor)
+  (use 'hg evolve' to update to its successor)
   $ hg --config extensions.purge= purge
   $ hg uncommit --all -X e
   1 new divergent changesets
@@ -319,7 +319,7 @@
 
   $ hg uncommit e
   new changeset is empty
-  (use "hg prune ." to remove it)
+  (use 'hg prune .' to remove it)
   $ hg debugobsolete
   5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 e8db4aa611f6d5706374288e6898e498f5c44098 0 (*) {'user': 'test'} (glob)
   5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 c706fe2c12f83ba5010cb60ea6af3bd1f0c2d6d3 0 (*) {'user': 'test'} (glob)