changeset 7472:9d457bb38de5

convert/cvs: do not compare None with int
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 06 Dec 2008 15:40:04 +0100
parents 94ecd4922a23
children 5185a24ce04e
files hgext/convert/cvs.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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]