--- a/mercurial/localrepo.py Thu Dec 01 10:51:45 2005 -0600
+++ b/mercurial/localrepo.py Tue Dec 06 14:10:38 2005 +0100
@@ -462,8 +462,14 @@
def walk(self, node=None, files=[], match=util.always):
if node:
+ fdict = dict.fromkeys(files)
for fn in self.manifest.read(self.changelog.read(node)[0]):
- if match(fn): yield 'm', fn
+ fdict.pop(fn, None)
+ if match(fn):
+ yield 'm', fn
+ for fn in fdict:
+ self.ui.warn(_('%s: No such file in rev %s\n') % (
+ util.pathto(self.getcwd(), fn), short(node)))
else:
for src, fn in self.dirstate.walk(files, match):
yield src, fn