mercurial/commands.py
changeset 868 6a8a50bcc143
parent 839 9c918287d10b
child 870 a82eae840447
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -581,6 +581,7 @@ def debugindexdot(ui, file_):
 
 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