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

nautilus: pass cwd as argument correctly

Changeset c952d259211e

Parent 06ccb77decd8

by Simon Heimberg

Changes to one file · Browse files at c952d259211e Showing diff from parent 06ccb77decd8 Diff from another changeset...

 
182
183
184
 
 
 
 
185
186
187
 
206
207
208
209
210
 
211
212
213
 
182
183
184
185
186
187
188
189
190
191
 
210
211
212
 
 
213
214
215
216
@@ -182,6 +182,10 @@
  def _buildMenu(self, menus):   '''Build one level of a menu'''   items = [] + if self.files: + passcwd = None + else: #bg + passcwd = self.cwd   for menu_info in menus:   idstr = 'HgNautilus::%02d' % self.pos   self.pos += 1 @@ -206,8 +210,7 @@
  menu_info.menutext,   menu_info.helptext,   self.icon(menu_info.icon)) - item.connect('activate', self.run_dialog, menu_info.hgcmd, - self.files and None or self.cwd) + item.connect('activate', self.run_dialog, menu_info.hgcmd, passcwd)   items.append(item)   return items