diff -r 142b07dbe641 -r c848b8e3089a hgkw/keyword.py --- a/hgkw/keyword.py Wed Oct 17 17:52:25 2007 +0200 +++ b/hgkw/keyword.py Wed Oct 17 23:53:59 2007 +0200 @@ -350,10 +350,13 @@ break if not f in files and match(f) and _iskwfile(ui, man, f): files.append(f) - ffiles = fdict.keys() - ffiles.sort() - for f in ffiles: - ui.warn(_('%s: No such file\n') % f) + if fdict: + ffiles = fdict.keys() + ffiles.sort() + cwd = repo.getcwd() + for f in ffiles: + ui.warn(_('%s: No such file in working copy\n') + % _pathto(repo, cwd, f)) # 7th argument sets commit to False _overwrite(ui, repo, files, ctx.node(), man, expand, False) finally: