Yuya Nishihara  committed ff0a221

revdetails: fall back to tip on reload if current rev is unknown (fixes #1581)

  • Participants
  • Parent commits aeebb47
  • Branches stable
  • Tags 2.3

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

     def reload(self):
         '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():
+        if (type(self.ctx.rev()) is int and len(self.repo) <= self.ctx.rev()
+            or (rev not in self.repo
+                and rev not in self.repo.thgmqunappliedpatches)):
             rev = 'tip'