Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

cmenu: fix path stripping for subdirectories

Changeset a36424c2782e

Parent f0246a83d5f0

by Steve Borho

Changes to one file · Browse files at a36424c2782e Showing diff from parent f0246a83d5f0 Diff from another changeset...

 
218
219
220
221
 
 
222
223
224
 
218
219
220
 
221
222
223
224
225
@@ -218,7 +218,8 @@
  for f in self.fnames:   cpath = util.canonpath(self.repo.root, cwd, f)   if cpath.startswith(cwd_rel): - cpath = cpath[len(cwd_rel):] + if cwd_rel: + cpath = cpath[len(cwd_rel+os.sep):]   files.append(cpath)   else:   files.append(f)