Use manifest rev instead of changelog rev for linear manifest test
authorBrendan Cully <brendan@kublai.com>
Fri, 13 Oct 2006 11:17:17 -0700
changeset 3386 55476ce8e59c
parent 3385 9e834d039681
child 3387 2065789f6a3e
Use manifest rev instead of changelog rev for linear manifest test
mercurial/commands.py
--- a/mercurial/commands.py	Fri Oct 13 19:35:08 2006 +0200
+++ b/mercurial/commands.py	Fri Oct 13 11:17:17 2006 -0700
@@ -1840,7 +1840,8 @@
                     break
         if rev in rcache[fn]:
             return rcache[fn][rev]
-        if repo.manifest.parentrevs(rev) != (rev - 1, -1):
+        mr = repo.manifest.rev(man)
+        if repo.manifest.parentrevs(mr) != (mr - 1, -1):
             return ncache[fn].get(repo.manifest.find(man, fn)[0])
         if not dcache or dcache[0] != man:
             dcache[:] = [man, repo.manifest.readdelta(man)]