Commits

Steve Borho  committed 3ea0244

datamine: catch ValueError while converting string revid to long

Fixes #1424, #1420

  • Participants
  • Parent commits de23bd9
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/datamine.py

         for line in text.splitlines():
             try:
                 (path, revid, text) = line.split(':', 2)
+                desc, user = self.get_rev_desc(long(revid))
             except ValueError:
                 continue
-            desc, user = self.get_rev_desc(long(revid))
             if self.tabwidth:
                 text = text.expandtabs(self.tabwidth)
             model.append((revid, text, desc, hglib.toutf(path)))