Commits

Yuya Nishihara committed 5c33906

revdetails: don't test revison existence for workingctx (fixes #1617)

  • Participants
  • Parent commits 53b6663
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/revdetails.py

         'Task tab is reloaded, or repowidget is refreshed'
         rev = self.ctx.rev()
         if (type(self.ctx.rev()) is int and len(self.repo) <= self.ctx.rev()
-            or (rev not in self.repo
+            or (rev is not None  # wctxrev in repo raises TypeError
+                and rev not in self.repo
                 and rev not in self.repo.thgmqunappliedpatches)):
             rev = 'tip'
         self.onRevisionSelected(rev)