Commits

Yuya Nishihara committed c3b756a

compress: fix failure of ancestry check caused by thgchangectx wrapper

Since Mercurial 0537c0cfd87c, changectx(n) == thgchangectx(n) is False.
See 5fbf7e9c2ac6 for details.

Comments (0)

Files changed (1)

tortoisehg/hgqt/repowidget.py

             dlg.finished.connect(dlg.deleteLater)
             dlg.exec_()
         def compressDlg():
-            ctxa = self.repo[self.menuselection[0]]
-            ctxb = self.repo[self.menuselection[1]]
+            ctxa, ctxb = map(self.repo.hgchangectx, self.menuselection)
             if ctxa.ancestor(ctxb) == ctxb:
                 revs = self.menuselection[:]
             elif ctxa.ancestor(ctxb) == ctxa: