# HG changeset patch # User Christian Ebert # Date 1192658039 -7200 # Node ID c848b8e3089a0ccf114c7ec7528ef0b357aec290 # Parent 142b07dbe64127cd1ab260ec64facbae7bccfbf2 Use pathto to display nonexisting files 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: