Mercurial > hg
diff hgext/parentrevspec.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | 25e572394f5c |
children |
line wrap: on
line diff
--- a/hgext/parentrevspec.py Mon Jan 25 00:05:22 2010 -0600 +++ b/hgext/parentrevspec.py Mon Jan 25 00:05:27 2010 -0600 @@ -67,7 +67,7 @@ p = cl.parentrevs(rev) if j < len(suffix) and suffix[j].isdigit(): j += 1 - n = int(suffix[i+1:j]) + n = int(suffix[i + 1:j]) if n > 2 or n == 2 and p[1] == -1: raise else: @@ -85,7 +85,7 @@ j += 1 if j == i + 1: raise - n = int(suffix[i+1:j]) + n = int(suffix[i + 1:j]) for k in xrange(n): rev = cl.parentrevs(rev)[0] i = j