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 3385 55476ce8e59c
parent 3384 9e834d039681
child 3386 2065789f6a3e
Use manifest rev instead of changelog rev for linear manifest test
mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1840,7 +1840,8 @@ def log(ui, repo, *pats, **opts):
                     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)]