compat: can't compare two values of unequal datatypes
authorAlejandro Santos <alejolp@alejolp.com>
Sun, 05 Jul 2009 11:01:01 +0200
changeset 9030 3f56055ff1d7
parent 9029 0001e49f1c11
child 9031 3b76321aa0de
compat: can't compare two values of unequal datatypes
mercurial/copies.py
mercurial/merge.py
--- a/mercurial/copies.py	Sun Jul 05 11:00:44 2009 +0200
+++ b/mercurial/copies.py	Sun Jul 05 11:01:01 2009 +0200
@@ -42,7 +42,7 @@
         seen.add(s)
         if fc.path() != orig and fc.path() not in old:
             old[fc.path()] = (depth, fc.path()) # remember depth
-        if fc.rev() < limit and fc.rev() is not None:
+        if fc.rev() is not None and fc.rev() < limit:
             continue
         visit += [(p, depth - 1) for p in fc.parents()]
 
--- a/mercurial/merge.py	Sun Jul 05 11:00:44 2009 +0200
+++ b/mercurial/merge.py	Sun Jul 05 11:01:01 2009 +0200
@@ -288,7 +288,7 @@
                 continue
             f2, fd, flags, move = a[2:]
             r = ms.resolve(fd, wctx, mctx)
-            if r > 0:
+            if r is not None and r > 0:
                 unresolved += 1
             else:
                 if r is None: