# HG changeset patch # User Adrian Buehlmann # Date 1339406114 -7200 # Node ID 634ad0b24ba217cbf9ca3a096adccb391b9ceb86 # Parent bdf8c6c61c9b3ff422208e62b498d61d69b12d6c debugwalk: observe ui.slash config option diff -r bdf8c6c61c9b -r 634ad0b24ba2 mercurial/commands.py --- a/mercurial/commands.py Wed Jun 13 20:14:28 2012 +0200 +++ b/mercurial/commands.py Mon Jun 11 11:15:14 2012 +0200 @@ -2371,11 +2371,14 @@ 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) fmt = 'f %%-%ds %%-%ds %%s' % ( max([len(abs) for abs in items]), max([len(m.rel(abs)) for abs in items])) for abs in items: - line = fmt % (abs, m.rel(abs), m.exact(abs) and 'exact' or '') + line = fmt % (abs, f(m.rel(abs)), m.exact(abs) and 'exact' or '') ui.write("%s\n" % line.rstrip()) @command('debugwireargs',