mercurial/narrowspec.py
changeset 42150 770f5f586ae5
parent 41676 0531dff73d0b
child 42171 84bd6ae2d1f6
--- a/mercurial/narrowspec.py	Tue Apr 16 15:50:20 2019 +0200
+++ b/mercurial/narrowspec.py	Thu Apr 18 03:05:42 2019 +0530
@@ -15,6 +15,7 @@
     match as matchmod,
     merge,
     repository,
+    scmutil,
     sparse,
     util,
 )
@@ -302,8 +303,9 @@
     else:
         trackeddirty.extend(lookup)
     _deletecleanfiles(repo, clean)
+    uipathfn = scmutil.getuipathfn(repo)
     for f in sorted(trackeddirty):
-        repo.ui.status(_('not deleting possibly dirty file %s\n') % f)
+        repo.ui.status(_('not deleting possibly dirty file %s\n') % uipathfn(f))
     for f in clean + trackeddirty:
         ds.drop(f)