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

nautilus: context menu for one selected folder is the same as for the folder

Changeset f2495600a9fa

Parent 1cd3105bd18a

by Simon Heimberg

Changes to one file · Browse files at f2495600a9fa Showing diff from parent 1cd3105bd18a Diff from another changeset...

 
163
164
165
166
 
167
168
169
170
171
172
173
 
 
174
175
176
 
163
164
165
 
166
167
168
 
169
 
 
 
170
171
172
173
174
@@ -163,14 +163,12 @@
  self.pos = 0   self.files = []   files = [self.get_path_for_vfs_file(f) for f in vfs_files] - if bg: + if bg or len(files) == 1 and vfs_files[0].is_directory():   cwd = files[0]   files = [] - repo = self.get_repo_for_path(cwd)   else: - f = files[0] - cwd = os.path.isdir(f) and f or os.path.dirname(f) - repo = self.get_repo_for_path(cwd) + cwd = os.path.dirname(files[0]) + repo = self.get_repo_for_path(cwd)   if repo:   menus = self.menu.get_commands(repo, cwd, files)   for f in files: