Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

stable hglib: introduce escapepath method

Changeset 9ae8537e239c

Parent fc7b51cbf3a3

by Steve Borho

Changes to one file · Browse files at 9ae8537e239c Showing diff from parent fc7b51cbf3a3 Diff from another changeset...

 
219
220
221
 
 
 
 
 
 
 
 
222
223
224
 
219
220
221
222
223
224
225
226
227
228
229
230
231
232
@@ -219,6 +219,14 @@
  canonpats.append(f)   return canonpats   +def escapepath(path): + 'Before passing a file path to hg API, it may need escaping' + p = path + if '[' in p or '{' in p or '*' in p or '?' in p: + return 'path:' + p + else: + return p +  def normpats(pats):   'Normalize file patterns'   normpats = []