Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902518

jcheck fails with TypeError: walkchangerevs() takes exactly 4 arguments (5 given) with Mercurial 4.9

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • tools
    • None
    • os_x

      OS: Darwin 18.7.0
      jcheck: changeset 127:3f30d0fbf215

      When running jcheck with Mercurial version 4.9, the following error is thrown:

      Traceback (most recent call last):
        File "/usr/local/bin/hg", line 43, in <module>
          dispatch.run()
        File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 99, in run
          status = dispatch(req)
        File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 225, in dispatch
          ret = _runcatch(req) or 0
        File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 376, in _runcatch
          return _callcatch(ui, _runcatchfunc)
        File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 384, in _callcatch
          return scmutil.callcatch(ui, func)
        File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/scmutil.py", line 165, in callcatch
          return func()
        File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 367, in _runcatchfunc
          return _dispatch(req)
        File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 1021, in _dispatch
          cmdpats, cmdoptions)
        File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 756, in runcommand
          ret = _runcommand(ui, options, cmd, d)
        File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 1030, in _runcommand
          return cmdfunc()
        File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/dispatch.py", line 1018, in <lambda>
          d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
        File "/usr/local/Cellar/mercurial/4.9/lib/python2.7/site-packages/mercurial/util.py", line 1670, in check
          return func(*args, **kwargs)
        File "/Users/jboes/Dev/openjdk/code-tools/jcheck/jcheck.py", line 806, in jcheck
          changeiter, matchfn = cmdutil.walkchangerevs(ui, repo, [], get, opts)
      TypeError: walkchangerevs() takes exactly 4 arguments (5 given)

      ~/Dev/openjdk/jdk/open $ hg --version
      Mercurial Distributed SCM (version 4.9)

            tbell Tim Bell
            jboes Julia Boes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: