hgext/convert/p4.py
changeset 8066 aece3c9e62f1
parent 7973 db3a68fd9387
parent 8063 ee8d9b93b316
child 8209 a1a5a57efe90
--- a/hgext/convert/p4.py	Wed Apr 08 02:38:23 2009 +0900
+++ b/hgext/convert/p4.py	Mon Apr 13 21:57:17 2009 +0200
@@ -48,7 +48,7 @@
 
     def _parse_view(self, path):
         "Read changes affecting the path"
-        cmd = "p4 -G changes -s submitted '%s'" % path
+        cmd = 'p4 -G changes -s submitted "%s"' % path
         stdout = util.popen(cmd)
         for d in loaditer(stdout):
             c = d.get("change", None)
@@ -67,7 +67,7 @@
             else:
                 views = {"//": ""}
         else:
-            cmd = "p4 -G client -o '%s'" % path
+            cmd = 'p4 -G client -o "%s"' % path
             clientspec = marshal.load(util.popen(cmd))
 
             views = {}
@@ -142,7 +142,7 @@
         return self.heads
 
     def getfile(self, name, rev):
-        cmd = "p4 -G print '%s#%s'" % (self.depotname[name], rev)
+        cmd = 'p4 -G print "%s#%s"' % (self.depotname[name], rev)
         stdout = util.popen(cmd)
 
         mode = None