Changeset c9bc1c7192c2…
Parent 7f2418cbd4b7…
by
Changes to one file · Browse files at c9bc1c7192c2 Showing diff from parent 7f2418cbd4b7 Diff from another changeset...
@@ -124,7 +124,15 @@ def quote(match):
key = match.group()[1:]
return util.shellquote(replace[key])
- args = ' '.join(opts)
+ if isinstance(cmd, unicode):
+ cmd = hglib.fromunicode(cmd)
+ lopts = []
+ for opt in opts:
+ if isinstance(opt, unicode):
+ lopts.append(hglib.fromunicode(opt))
+ else:
+ lopts.append(opt)
+ args = ' '.join(lopts)
args = re.sub(_regex, quote, args)
cmdline = util.shellquote(cmd) + ' ' + args
cmdline = util.quotecommand(cmdline)
|
Loading...