changeset 13:be056ef66d2a

Compatibility with newer mercurial.
author Sjoerd Mullender <sjoerd@acm.org>
date Wed, 01 May 2019 22:19:48 +0200 (2019-05-01)
parents 915cf73f6afa
children 026da0bbb4ef
files check_whitespace.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/check_whitespace.py	Tue Mar 31 09:56:52 2015 +0200
+++ b/check_whitespace.py	Wed May 01 22:19:48 2019 +0200
@@ -106,7 +106,7 @@
         return 1
     added = False
     branches = {}
-    for rev in xrange(repo[node], len(repo)):
+    for rev in xrange(repo[node].rev(), len(repo)):
         branch = repo[rev].branch()
         if not branches.has_key(branch):
             # first time we see this branch, remember parents to diff against