changeset 836:0cbf9fd89672 1.3

svnexternals: comment on the purpose of int(rev)
author Augie Fackler <durin42@gmail.com>
date Wed, 12 Oct 2011 20:23:37 +0800
parents f089ca13cc4c
children 805ef27fbcbe efc86b40e915
files hgsubversion/svnexternals.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svnexternals.py
+++ b/hgsubversion/svnexternals.py
@@ -119,7 +119,7 @@ def parsedefinition(line):
         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