Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7, 0.7.1, and 0.7.2

rename: support notification of parent tool

Changeset 9601a5dd6203

Parent eed440d65875

by Steve Borho

Changes to one file · Browse files at 9601a5dd6203 Showing diff from parent eed440d65875 Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​rename.py Stacked
 
44
45
46
 
47
48
49
 
174
175
176
 
 
 
177
178
179
 
294
295
296
 
 
297
298
299
 
44
45
46
47
48
49
50
 
175
176
177
178
179
180
181
182
183
 
298
299
300
301
302
303
304
305
@@ -44,6 +44,7 @@
  gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL)     self.root = root + self.notify_func = None   self.set_title('Detect Copies/Renames in %s' % os.path.basename(root))   settings = shlib.Settings('rename')   dims = settings.get_value('dims', (800, 600)) @@ -174,6 +175,9 @@
  self.connect('delete-event', self.save_settings,   settings, hpaned, vpaned, adjustment)   + def set_notify_func(self, func): + self.notify_func = func +   def on_window_map_event(self, event, param, unkmodel):   self.refresh(unkmodel)   @@ -294,6 +298,8 @@
  repo.remove([src])   repo.copy(src, dest)   shlib.shell_notify([src, dest]) + if self.notify_func: + self.notify_func()   # Mark all rows with this target file as non-sensitive   for row in cmodel:   if row[1] == dest: