grab: properly quote hg executable in the alias stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 24 Jun 2017 13:28:16 +0200
branchstable
changeset 2658 ae822f28b617
parent 2629 9c0f6b85c28f
child 2659 166ca0aba0ea
grab: properly quote hg executable in the alias Breakage has been reported on Windows.
hgext3rd/evolve/__init__.py
--- a/hgext3rd/evolve/__init__.py	Sat Jun 17 01:02:37 2017 +0200
+++ b/hgext3rd/evolve/__init__.py	Sat Jun 24 13:28:16 2017 +0200
@@ -410,10 +410,10 @@
                      'evolve')
     if ui.config('alias', 'grab', None) is None:
         if os.name == 'nt':
-            ui.setconfig('alias', 'grab',
-                         "! " + util.hgexecutable()
+            hgexe = ('"%s"' % util.hgexecutable())
+            ui.setconfig('alias', 'grab', "! " + hgexe
                          + " rebase --dest . --rev $@ && "
-                         + util.hgexecutable() + " up tip",
+                         + hgexe + " up tip",
                          'evolve')
         else:
             ui.setconfig('alias', 'grab',