Changeset 819b4464200b…
Parent 606ae7c22280…
by
Changes to one file · Browse files at 819b4464200b Showing diff from parent 606ae7c22280 Diff from another changeset...
@@ -219,15 +219,16 @@ self.updateActions()
def gotoAncestor(self, index):
- if rev is None or self.current_rev is None:
- return
- ctx = self.context(self.current_rev)
- ctx2 = self.context(rev)
- if ctx.thgmqunappliedpatch() or ctx2.thgmqunappliedpatch():
- return
- ancestor = ctx.ancestor(ctx2)
- self.showMessage.emit(_("Goto ancestor of %s and %s")%(ctx.rev(), ctx2.rev()))
- self.goto(ancestor.rev())
+ rev = self.revFromindex(index)
+ if rev is None or self.current_rev is None:
+ return
+ ctx = self.context(self.current_rev)
+ ctx2 = self.context(rev)
+ if ctx.thgmqunappliedpatch() or ctx2.thgmqunappliedpatch():
+ return
+ ancestor = ctx.ancestor(ctx2)
+ self.showMessage.emit(_("Goto ancestor of %s and %s")%(ctx.rev(), ctx2.rev()))
+ self.goto(ancestor.rev())
def updateActions(self):
if len(self._rev_history) > 0:
|
Loading...