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

hg-crew-tip hggtk/datamine: only allow following copies when no includes/excludes

Changeset bd649f9329c0

Parent 6838af4757f3

by Peter Arrenbrecht

Changes to one file · Browse files at bd649f9329c0 Showing diff from parent 6838af4757f3 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​datamine.py Stacked
 
254
255
256
 
 
 
 
 
257
258
259
 
371
372
373
 
 
 
 
 
 
 
374
375
376
 
254
255
256
257
258
259
260
261
262
263
264
 
376
377
378
379
380
381
382
383
384
385
386
387
388
@@ -254,6 +254,11 @@
  regexp.connect('activate', self.trigger_search, objs)   includes.connect('activate', self.trigger_search, objs)   excludes.connect('activate', self.trigger_search, objs) + # Includes/excludes must disable following copies + objs = (includes, excludes, follow) + includes.connect('changed', self._update_following_possible, objs) + excludes.connect('changed', self._update_following_possible, objs) +   if hasattr(self.notebook, 'set_tab_reorderable'):   self.notebook.set_tab_reorderable(frame, True)   self.notebook.set_current_page(num) @@ -371,6 +376,13 @@
  return True   return False   + def _update_following_possible(self, widget, objs): + (includes, excludes, follow) = objs + allow = not includes.get_text() and not excludes.get_text() + if not allow: + follow.set_active(False) + follow.set_sensitive(allow) +   def add_annotate_page(self, path, revid):   '''   Add new annotation page to notebook. Start scan of