Mercurial > public > mercurial-scm > hg-stable
diff hgext/win32text.py @ 18054:b35e3364f94a
check-code: there must also be whitespace between ')' and operator
The check pattern only checked for whitespace between keyword and operator.
Now it also warns:
> x = f(),7
missing whitespace after ,
> x = f()+7
missing whitespace in expression
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sun, 09 Dec 2012 23:33:16 +0100 |
parents | 7985a9e2ddce |
children | 23146e4d9cee |
line wrap: on
line diff
--- a/hgext/win32text.py Sun Dec 09 23:33:16 2012 +0100 +++ b/hgext/win32text.py Sun Dec 09 23:33:16 2012 +0100 @@ -121,7 +121,7 @@ # changegroup that contains an unacceptable commit followed later # by a commit that fixes the problem. tip = repo['tip'] - for rev in xrange(len(repo)-1, repo[node].rev()-1, -1): + for rev in xrange(len(repo) - 1, repo[node].rev() - 1, -1): c = repo[rev] for f in c.files(): if f in seen or f not in tip or f not in c: