Mercurial > hg-stable
changeset 868:6a8a50bcc143
Fix debugwalk when there's nothing to walk.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Sun, 07 Aug 2005 11:04:58 -0800 |
parents | 9c918287d10b |
children | 1e3a23719662 |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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