convert/cvs: do not compare None with int
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sat, 06 Dec 2008 15:40:04 +0100
changeset 7472 9d457bb38de5
parent 7471 94ecd4922a23
child 7473 5185a24ce04e
convert/cvs: do not compare None with int
hgext/convert/cvs.py
--- a/hgext/convert/cvs.py	Sat Dec 06 15:37:15 2008 +0100
+++ b/hgext/convert/cvs.py	Sat Dec 06 15:40:04 2008 +0100
@@ -144,11 +144,11 @@
                             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]