Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

repowidget: do not show pair or multi-menu if unapplied patches are selected

Changeset 9e384b626728

Parent d5c8aa54f971

by Steve Borho

Changes to one file · Browse files at 9e384b626728 Showing diff from parent d5c8aa54f971 Diff from another changeset...

 
783
784
785
786
787
788
 
 
 
 
789
790
791
 
846
847
848
849
850
851
 
 
 
 
852
853
854
 
783
784
785
 
 
 
786
787
788
789
790
791
792
 
847
848
849
 
 
 
850
851
852
853
854
855
856
@@ -783,9 +783,10 @@
  self.singlecmenu.exec_(point)     def doubleSelectionMenu(self, point, selection): - if None in selection: - # No pair menu if working directory is selected - return + for r in selection: + # No pair menu if working directory or unapplied patch + if type(r) is not int: + return   revA, revB = selection   def dagrange():   if revA > revB: @@ -846,9 +847,10 @@
  self.paircmenu.exec_(point)     def multipleSelectionMenu(self, point, selection): - if None in selection: - # No multi menu if working directory is selected - return + for r in selection: + # No multi menu if working directory or unapplied patch + if type(r) is not int: + return   def exportSel():   epath = os.path.join(self.repo.root,   self.repo.shortname + '_%r.patch')