Commits

Steve Borho committed d2c390a

repowidget: do not allow visualDiffToLocal to use the working dir (fixes #1247)

  • Participants
  • Parent commits 7d9f644
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/repowidget.py

             dlg.deleteLater()
 
     def visualDiffToLocal(self):
-        assert type(self.rev) is int
+        if self.rev is None:
+            return
         opts = dict(rev=['rev(%d)' % self.rev])
         dlg = visdiff.visualdiff(self.repo.ui, self.repo, [], opts)
         if dlg: