Please check out the revset feature

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Tue Jun 8 08:45:07 CDT 2010


On Mon, Jun 7, 2010 at 6:16 PM, Matt Mackall <mpm at selenic.com> wrote:
> Last week I pushed the revset feature to default. It's available
> wherever revision ranges were previously supported. It's quite complex
> and needs some testing. (And yes, there are currently no tests or docs!)

$ hg debugrevspec 'contains())'
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3]
** Mercurial Distributed SCM (version 1.5.1+50-3f30190781a3+20100409)
** Extensions loaded:
Traceback (most recent call last):
  File "./hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/home/peo/dev/hg/dev-crew/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/home/peo/dev/hg/dev-crew/mercurial/dispatch.py", line 34, in dispatch
    return _runcatch(u, args)
  File "/home/peo/dev/hg/dev-crew/mercurial/dispatch.py", line 54, in _runcatch
    return _dispatch(ui, args)
  File "/home/peo/dev/hg/dev-crew/mercurial/dispatch.py", line 480, in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/home/peo/dev/hg/dev-crew/mercurial/dispatch.py", line 350, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/home/peo/dev/hg/dev-crew/mercurial/dispatch.py", line 531, in
_runcommand
    return checkargs()
  File "/home/peo/dev/hg/dev-crew/mercurial/dispatch.py", line 485, in checkargs
    return cmdfunc()
  File "/home/peo/dev/hg/dev-crew/mercurial/dispatch.py", line 479, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/home/peo/dev/hg/dev-crew/mercurial/util.py", line 408, in check
    return func(*args, **kwargs)
  File "/home/peo/dev/hg/dev-crew/mercurial/commands.py", line 945, in
debugrevspec
    for c in func(repo, range(len(repo))):
  File "/home/peo/dev/hg/dev-crew/mercurial/revset.py", line 553, in mfunc
    return getset(repo, subset, tree)
  File "/home/peo/dev/hg/dev-crew/mercurial/revset.py", line 109, in getset
    return methods[x[0]](repo, subset, *x[1:])
  File "/home/peo/dev/hg/dev-crew/mercurial/revset.py", line 154, in func
    return symbols[a[1]](repo, subset, b)
  File "/home/peo/dev/hg/dev-crew/mercurial/revset.py", line 281, in contains
    pat = getstring(x, "file wants a pattern")
  File "/home/peo/dev/hg/dev-crew/mercurial/revset.py", line 89, in getstring
    if x[0] == 'string' or x[0] == 'symbol':
TypeError: 'NoneType' object is unsubscriptable


More information about the Mercurial-devel mailing list