Commits

Augie Fackler committed 0cbf9fd

svnexternals: comment on the purpose of int(rev)

Comments (0)

Files changed (1)

hgsubversion/svnexternals.py

         revgroup = 2
         path, rev, source = m.group(1, 2, 3)
     try:
-        nrev = int(rev)
+        int(rev) # ensure revision is int()able, so we bail otherwise
         norevline = line[:m.start(revgroup)] + '{REV}' + line[m.end(revgroup):]
     except (TypeError, ValueError):
         norevline = line