# HG changeset patch # User Sjoerd Mullender <sjoerd@acm.org> # Date 1556741988 -7200 # Node ID be056ef66d2a8f0eb5de3ba9037d7210620aefd1 # Parent 915cf73f6afa3f766666538ff34391346090deaa Compatibility with newer mercurial. diff -r 915cf73f6afa -r be056ef66d2a check_whitespace.py --- 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