Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.5, 2.1, and 2.1.1

stable visdiff: ensure all arguments are in local encoding (fixes #433)

Changeset c9bc1c7192c2

Parent 7f2418cbd4b7

by Steve Borho

Changes to one file · Browse files at c9bc1c7192c2 Showing diff from parent 7f2418cbd4b7 Diff from another changeset...

 
124
125
126
127
 
 
 
 
 
 
 
 
 
128
129
130
 
124
125
126
 
127
128
129
130
131
132
133
134
135
136
137
138
@@ -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)