Changeset 28a73156ea29…
Parent 02304bccc7dd…
by
Changes to one file · Browse files at 28a73156ea29 Showing diff from parent 02304bccc7dd Diff from another changeset...
@@ -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
|
Loading...