# HG changeset patch # User Benoit Boissinot # Date 2008-12-06 14:40:04 # Node ID 9d457bb38de59fa557ce9aa954512c963ea8fcf2 # Parent 94ecd4922a23efe82e7a71a4e08c951358f9c3ec convert/cvs: do not compare None with int diff --git a/hgext/convert/cvs.py b/hgext/convert/cvs.py --- a/hgext/convert/cvs.py +++ b/hgext/convert/cvs.py @@ -144,11 +144,11 @@ class convert_cvs(converter_source): if branch == "HEAD": branch = "" if branch: - latest = None + latest = 0 # the last changeset that contains a base # file is our parent for r in oldrevs: - latest = max(filerevids.get(r, None), latest) + latest = max(filerevids.get(r, 0), latest) if latest: p = [latest]