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

status: 80-char cleanups

Changeset cfec353399a7

Parent 63d14e75504b

by Steve Borho

Changes to one file · Browse files at cfec353399a7 Showing diff from parent 63d14e75504b Diff from another changeset...

Change 1 of 4 Show Entire File hggtk/​status.py Stacked
 
617
618
619
620
 
621
622
623
 
624
625
626
 
1287
1288
1289
1290
1291
 
 
 
1292
1293
1294
 
1298
1299
1300
1301
 
 
 
1302
1303
1304
 
1358
1359
1360
1361
 
1362
1363
 
1364
1365
 
617
618
619
 
620
621
622
 
623
624
625
626
 
1287
1288
1289
 
 
1290
1291
1292
1293
1294
1295
 
1299
1300
1301
 
1302
1303
1304
1305
1306
1307
 
1361
1362
1363
 
1364
1365
 
1366
1367
1368
@@ -617,10 +617,10 @@
  def reload_status(self):   if not self._ready: return False   self._last_file = None - success, outtext = self._hg_call_wrapper('Status', self._do_reload_status) + res, outtext = self._hg_call_wrapper('Status', self._do_reload_status)   self.auto_check()   self._update_check_count() - return success + return res       def make_menu(self, entries): @@ -1287,8 +1287,9 @@
      def _tree_button_press(self, widget, event) : - # Set the flag to ignore the next activation when the shift/control keys are - # pressed. This avoids activations with multiple rows selected. + # Set the flag to ignore the next activation when the + # shift/control keys are pressed. This avoids activations with + # multiple rows selected.   if event.type == gtk.gdk._2BUTTON_PRESS and \   (event.state & (gtk.gdk.SHIFT_MASK | gtk.gdk.CONTROL_MASK)):   self._ignore_next_act = True @@ -1298,7 +1299,9 @@
      def _tree_button_release(self, widget, event) : - if event.button == 3 and not (event.state & (gtk.gdk.SHIFT_MASK | gtk.gdk.CONTROL_MASK)): + if event.button != 3: + return False + if not (event.state & (gtk.gdk.SHIFT_MASK | gtk.gdk.CONTROL_MASK)):   self._tree_popup_menu(widget, event.button, event.time)   return False   @@ -1358,8 +1361,8 @@
  rev = opts.get('rev', [])   cmdoptions = {   'all':False, 'clean':showclean, 'ignored':False, 'modified':True, - 'added':True, 'removed':True, 'deleted':True, 'unknown':True, 'rev': rev, + 'added':True, 'removed':True, 'deleted':True, 'unknown':True,   'exclude':[], 'include':[], 'debug':True, 'verbose':True, 'git':False, - 'check':True + 'rev':rev, 'check':True   }   return GStatus(ui, None, None, pats, cmdoptions)