Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

thgmq: add get_pos_by_patchname() function

Changeset 7844b5e114a4

Parent f5eacdad4a18

by Yuki KODAMA

Changes to one file · Browse files at 7844b5e114a4 Showing diff from parent f5eacdad4a18 Diff from another changeset...

 
597
598
599
 
 
 
 
 
 
 
 
600
601
602
 
597
598
599
600
601
602
603
604
605
606
607
608
609
610
@@ -597,6 +597,14 @@
  return self.model[path]   return None   + def get_pos_by_patchname(self, name): + """ return position of specified patch name """ + if name: + for i, row in enumerate(self.model): + if row[MQ_NAME] == name: + return i + return None +   def get_qtip_patchname(self):   if self.mqloaded and self.get_num_applied() > 0 \   and 'qtip' in self.repo.tags():