Use pathto to display nonexisting files
authorChristian Ebert <blacktrash@gmx.net>
Wed, 17 Oct 2007 23:53:59 +0200
changeset 277 c848b8e3089a
parent 276 142b07dbe641
child 278 232df68a0bcc
Use pathto to display nonexisting files
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: