mercurial/commands.py
changeset 1851 5c374776a8bc
parent 1850 05f6c0d1bad8
parent 1847 94498a262d15
child 1857 848152a2e67f
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -593,12 +593,7 @@ def annotate(ui, repo, *pats, **opts):
     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))