# HG changeset patch # User Bryan O'Sullivan # Date 1123441498 28800 # Node ID 6a8a50bcc14380c142865158fbfc4bd1d0e53eca # Parent 9c918287d10b4018e27f9148e247e68ff5fe952c Fix debugwalk when there's nothing to walk. diff -r 9c918287d10b -r 6a8a50bcc143 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