[PATCH 1 of 3] Fix debugwalk when there's nothing to walk

Bryan O'Sullivan bos at serpentine.com
Tue Aug 9 23:10:46 CDT 2005


# HG changeset patch
# User Bryan O'Sullivan <bos at serpentine.com>
# 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  4 21:31:25 2005
+++ b/mercurial/commands.py	Sun Aug  7 19:04:58 2005
@@ -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
 




More information about the Mercurial mailing list