##// END OF EJS Templates
debugwalk: observe ui.slash config option
Adrian Buehlmann -
r16953:634ad0b2 default
parent child Browse files
Show More
@@ -2371,11 +2371,14 b' def debugwalk(ui, repo, *pats, **opts):'
2371 items = list(repo.walk(m))
2371 items = list(repo.walk(m))
2372 if not items:
2372 if not items:
2373 return
2373 return
2374 f = lambda fn: fn
2375 if ui.configbool('ui', 'slash') and os.sep != '/':
2376 f = lambda fn: util.normpath(fn)
2374 fmt = 'f %%-%ds %%-%ds %%s' % (
2377 fmt = 'f %%-%ds %%-%ds %%s' % (
2375 max([len(abs) for abs in items]),
2378 max([len(abs) for abs in items]),
2376 max([len(m.rel(abs)) for abs in items]))
2379 max([len(m.rel(abs)) for abs in items]))
2377 for abs in items:
2380 for abs in items:
2378 line = fmt % (abs, m.rel(abs), m.exact(abs) and 'exact' or '')
2381 line = fmt % (abs, f(m.rel(abs)), m.exact(abs) and 'exact' or '')
2379 ui.write("%s\n" % line.rstrip())
2382 ui.write("%s\n" % line.rstrip())
2380
2383
2381 @command('debugwireargs',
2384 @command('debugwireargs',
General Comments 0
You need to be logged in to leave comments. Login now