Comments
Patch
@@ -2505,9 +2505,7 @@
items = list(repo.walk(m))
if not items:
return
- f = lambda fn: fn
- if ui.configbool('ui', 'slash') and os.sep != '/':
- f = lambda fn: util.normpath(fn)
+ f = ui.disppath
fmt = 'f %%-%ds %%-%ds %%s' % (
max([len(abs) for abs in items]),
max([len(m.rel(abs)) for abs in items]))
@@ -131,10 +131,6 @@
return ignore.ignore(self._root, files, self._ui.warn)
@propertycache
- def _slash(self):
- return self._ui.configbool('ui', 'slash') and os.sep != '/'
-
- @propertycache
def _checklink(self):
return util.checklink(self._root)
@@ -200,9 +196,7 @@
if cwd is None:
cwd = self.getcwd()
path = util.pathto(self._root, cwd, f)
- if self._slash:
- return util.normpath(path)
- return path
+ return self._ui.disppath(path)
def __getitem__(self, key):
'''Return the current state of key (a filename) in the dirstate.