Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

repowidget: Switch to the commit widget when selecting the topmost pacth

Now that the commit widget allows to perform qrefresh and qnew, it is preferable
to switch to the commit widget rather than to the mq widget when selecting the
topmost patch.

There is an existing issue which this patch does not fix, which is that if you
you run qimport while the working directory parent revision is selected, the
commit widget is _not_ selected. Instead the revision history widget will remain
selected.

Changeset 686954ba1224

Parent 49a0cab91515

by Angel Ezquerra

Changes to one file · Browse files at 686954ba1224 Showing diff from parent 49a0cab91515 Diff from another changeset...

 
692
693
694
695
 
696
697
698
699
700
701
702
703
 
692
693
694
 
695
696
697
 
 
 
698
699
700
@@ -692,12 +692,9 @@
  if not cw.canswitch():   return   ctx = self.repo.changectx(rev) - if rev is None: + if rev is None or ('mq' in self.repo.extensions() and 'qtip' in ctx.tags()):   # Clicking on working copy switches to commit tab   tw.setCurrentIndex(self.commitTabIndex) - elif 'mq' in self.repo.extensions() and 'qtip' in ctx.tags(): - # Clicking on latest applied patch switches to mq tab - tw.setCurrentIndex(self.mqTabIndex)   else:   # Clicking on a normal revision switches from commit tab   tw.setCurrentIndex(self.logTabIndex)