[Bug 6046] New: filesets raise a programming error from the command line with an invalid revision

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Fri Jan 4 19:41:54 UTC 2019


https://bz.mercurial-scm.org/show_bug.cgi?id=6046

            Bug ID: 6046
           Summary: filesets raise a programming error from the command
                    line with an invalid revision
           Product: Mercurial
           Version: 4.8.1
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: normal
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: matt_harbison at yahoo.com
                CC: mercurial-devel at mercurial-scm.org

It was a typo on my part walking back from tip, but it's easy to reproduce on
the hg repo:

E:\Projects\hg>.\hg.exe file -r tip~100000 "set:size('>=10K')"
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32
bit (Intel)]
** Mercurial Distributed SCM (version 4.8.1+15-fbd5e2f0bba7)
** Extensions loaded: purge, schemes, strip, mq, blackbox, extdiff, rebase
** ProgrammingError: fileset expression with no context
Traceback (most recent call last):
  File "E:\Projects\hg\hg", line 43, in <module>
    dispatch.run()
  File "E:\Projects\hg\mercurial\dispatch.py", line 96, in run
    status = dispatch(req)
  File "E:\Projects\hg\mercurial\dispatch.py", line 220, in dispatch
    ret = _runcatch(req) or 0
  File "E:\Projects\hg\mercurial\dispatch.py", line 363, in _runcatch
    return _callcatch(ui, _runcatchfunc)
  File "E:\Projects\hg\mercurial\dispatch.py", line 371, in _callcatch
    return scmutil.callcatch(ui, func)
  File "E:\Projects\hg\mercurial\scmutil.py", line 166, in callcatch
    return func()
  File "E:\Projects\hg\mercurial\dispatch.py", line 354, in _runcatchfunc
    return _dispatch(req)
  File "E:\Projects\hg\mercurial\dispatch.py", line 994, in _dispatch
    cmdpats, cmdoptions)
  File "E:\Projects\hg\mercurial\dispatch.py", line 737, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "E:\Projects\hg\mercurial\dispatch.py", line 1003, in _runcommand
    return cmdfunc()
  File "E:\Projects\hg\mercurial\dispatch.py", line 991, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
  File "E:\Projects\hg\mercurial\util.py", line 1644, in check
    return func(*args, **kwargs)
  File "E:\Projects\hg\mercurial\util.py", line 1644, in check
    return func(*args, **kwargs)
  File "E:\Projects\hg\hgext\mq.py", line 3631, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "E:\Projects\hg\mercurial\util.py", line 1644, in check
    return func(*args, **kwargs)
  File "E:\Projects\hg\mercurial\commands.py", line 2197, in files
    m = scmutil.match(ctx, pats, opts)
  File "E:\Projects\hg\mercurial\scmutil.py", line 791, in match
    return matchandpats(ctx, pats, opts, globbed, default, badfn=badfn)[0]
  File "E:\Projects\hg\mercurial\scmutil.py", line 782, in matchandpats
    default, listsubrepos=opts.get('subrepos'), badfn=badfn)
  File "E:\Projects\hg\mercurial\context.py", line 294, in match
    listsubrepos=listsubrepos, badfn=badfn)
  File "E:\Projects\hg\mercurial\match.py", line 182, in match
    badfn=badfn)
  File "E:\Projects\hg\mercurial\match.py", line 103, in _buildkindpatsmatcher
    listsubrepos=listsubrepos, badfn=badfn)
  File "E:\Projects\hg\mercurial\match.py", line 52, in _expandsets
    raise error.ProgrammingError("fileset expression with no "
mercurial.error.ProgrammingError: fileset expression with no context

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list