fix annotate for removed files
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Tue, 07 Mar 2006 20:37:27 +0100
changeset 1847 94498a262d15
parent 1846 4d2791f4ef80
child 1851 5c374776a8bc
fix annotate for removed files walk in the manifest files instead of the working dir files when running annotate
mercurial/commands.py
--- a/mercurial/commands.py	Mon Mar 06 21:06:53 2006 -0800
+++ b/mercurial/commands.py	Tue Mar 07 20:37:27 2006 +0100
@@ -593,12 +593,7 @@
     change = repo.changelog.read(node)
     mmap = repo.manifest.read(change[0])
 
-    for src, abs, rel, exact in walk(repo, pats, opts):
-        if abs not in mmap:
-            ui.warn(_("warning: %s is not in the repository!\n") %
-                    ((pats and rel) or abs))
-            continue
-
+    for src, abs, rel, exact in walk(repo, pats, opts, node=node):
         f = repo.file(abs)
         if not opts['text'] and util.binary(f.read(mmap[abs])):
             ui.write(_("%s: binary file\n") % ((pats and rel) or abs))