Patchwork D6264: narrow: make warning about possibly dirty files respect ui.relative-paths

login
register
mail settings
Submitter phabricator
Date April 17, 2019, 10:11 p.m.
Message ID <368365cbddeaa6c54e7d3bc4427b921a@localhost.localdomain>
Download mbox | patch
Permalink /patch/39715/
State Not Applicable
Headers show

Comments

phabricator - April 17, 2019, 10:11 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG770f5f586ae5: narrow: make warning about possibly dirty files respect ui.relative-paths (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6264?vs=14802&id=14814

REVISION DETAIL
  https://phab.mercurial-scm.org/D6264

AFFECTED FILES
  mercurial/narrowspec.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/narrowspec.py b/mercurial/narrowspec.py
--- a/mercurial/narrowspec.py
+++ b/mercurial/narrowspec.py
@@ -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)