[patch 01/10] dirstate walking optimizations

Chris Mason mason at suse.com
Tue Aug 9 16:20:26 CDT 2005


On Tuesday 09 August 2005 15:57, Bryan O'Sullivan wrote:
> On Tue, 2005-08-09 at 15:18 -0400, Chris Mason wrote:
> > I'm not sure how to test the matching functions.
>
> The easiest way is to use the debugwalk command.
>
> For example:
>
> hg debugwalk "*"
>
> or
>
> hg debugwalk "glob:*"
>
> > hg diff 'glob:fs/reiserfs/*.c'

Thanks, hg diff 'glob:fs/reiserfs/*.c' works but hg debugwalk 're:.*' gives me 
this:

coffee:/data/linux.t # hg debugwalk 're:.*'
Traceback (most recent call last):
  File "/usr/bin/hg", line 13, in ?
    commands.run()
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line 1374, in 
run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line 1476, in 
dispatch
    return d()
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line 1461, in 
<lambda>
    d = lambda: func(u, repo, *args, **cmdoptions)
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line 629, in 
debugwalk
    fmt = '%%s  %%-%ds  %%s' % max([len(abs) for (src, abs, rel) in items])

hg diff 're:.*' returns nothing even when some files have changed.

-chris



More information about the Mercurial mailing list