Fix debugwalk when there's nothing to walk.
authorBryan O'Sullivan <bos@serpentine.com>
Sun, 07 Aug 2005 11:04:58 -0800
changeset 868 6a8a50bcc143
parent 839 9c918287d10b
child 869 1e3a23719662
Fix debugwalk when there's nothing to walk.
mercurial/commands.py
--- a/mercurial/commands.py	Thu Aug 04 13:31:25 2005 -0800
+++ b/mercurial/commands.py	Sun Aug 07 11:04:58 2005 -0800
@@ -581,6 +581,7 @@
 
 def debugwalk(ui, repo, *pats, **opts):
     items = list(walk(repo, pats, opts))
+    if not items: return
     fmt = '%%s  %%-%ds  %%s' % max([len(abs) for (src, abs, rel) in items])
     for i in items: print fmt % i