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

nautilus: let hgtk map the paths to canonical

Changeset 28a73156ea29

Parent 02304bccc7dd

by Simon Heimberg

Changes to one file · Browse files at 28a73156ea29 Showing diff from parent 02304bccc7dd Diff from another changeset...

 
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
 
173
174
175
 
156
157
158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
160
161
162
@@ -156,20 +156,7 @@
  repo = self.get_repo_for_path(cwd)   if repo:   menus = self.menu.get_commands(repo, cwd, files) - if cwd == repo.root: - cwd_rel = '' - else: - cwd_rel = cwd[len(repo.root+os.sep):] + os.sep - for f in files: - try: - cpath = util.canonpath(repo.root, cwd, f) - if cpath.startswith(cwd_rel): - cpath = cpath[len(cwd_rel):] - self.files.append(cpath) - else: - self.files.append(f) - except util.Abort: # canonpath will abort on .hg/ paths - pass + self.files = files   else:   menus = self.menu.get_norepo_commands(cwd, files)   self.cwd = cwd