# HG changeset patch # User Bryan O'Sullivan # Date 1123441498 28800 # Node ID 6a8a50bcc14380c142865158fbfc4bd1d0e53eca # Parent 9c918287d10b4018e27f9148e247e68ff5fe952c Fix debugwalk when there's nothing to walk. diff --git a/mercurial/commands.py b/mercurial/commands.py --- 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