Incompatible with mercurial 4.5
Created originally on Bitbucket by Anonymous
I just upgraded to Mercurial 4.5. I see this now:
jcea@jcea:~/hg/python/devguide$ hg pull
pulling from git+https://github.com/python/devguide
importing git objects into hg
** Unknown exception encountered with possibly-broken third-party extension zipdoc
** which supports versions unknown of Mercurial.
** Please disable zipdoc and try your action again.
** If that fixes the bug please report it to the extension author.
** Python 2.7.14 (default, Sep 20 2017, 16:03:25) [GCC 5.4.0 20160609]
** Mercurial Distributed SCM (version 4.5)
** Extensions loaded: strip, mq, convert, graphlog, record, rebase, largefiles, churn, hggit, shelve, share, relink, zipdoc
Traceback (most recent call last):
File "/usr/local/bin/hg", line 41, in <module>
dispatch.run()
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 88, in run
status = (dispatch(req) or 0) & 255
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 183, in dispatch
ret = _runcatch(req)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 324, in _runcatch
return _callcatch(ui, _runcatchfunc)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 332, in _callcatch
return scmutil.callcatch(ui, func)
File "/usr/local/lib/python2.7/site-packages/mercurial/scmutil.py", line 154, in callcatch
return func()
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 314, in _runcatchfunc
return _dispatch(req)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 918, in _dispatch
cmdpats, cmdoptions)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 673, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 926, in _runcommand
return cmdfunc()
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 915, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1195, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1195, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/hgext/mq.py", line 3583, in mqcommand
return orig(ui, repo, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1195, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1195, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/hgext/largefiles/overrides.py", line 804, in overridepull
result = orig(ui, repo, source, **opts)
File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1195, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1195, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/hgext/rebase.py", line 1772, in pullrebase
ret = orig(ui, repo, *args, **opts)
File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1195, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mercurial/commands.py", line 4037, in pull
opargs=pullopargs).cgresult
File "/usr/local/lib/python2.7/site-packages/hggit/util.py", line 56, in inner
return f(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/hggit/__init__.py", line 348, in exchangepull
pullop.cgresult = repo.githandler.fetch(remote.path, heads)
File "/usr/local/lib/python2.7/site-packages/hggit/git_handler.py", line 276, in fetch
imported = self.import_git_objects(remote_name, filteredrefs)
File "/usr/local/lib/python2.7/site-packages/hggit/git_handler.py", line 786, in import_git_objects
self.import_git_commit(commit)
File "/usr/local/lib/python2.7/site-packages/hggit/git_handler.py", line 1021, in import_git_commit
node = self.repo.commitctx(ctx)
File "/usr/local/lib/python2.7/site-packages/hgext/largefiles/reposetup.py", line 265, in commitctx
node = super(lfilesrepo, self).commitctx(ctx, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mercurial/localrepo.py", line 142, in wrapper
return orig(repo.unfiltered(), *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mercurial/localrepo.py", line 1926, in commitctx
elif ctx.files():
File "/usr/local/lib/python2.7/site-packages/mercurial/context.py", line 1425, in files
return sorted(self._status.modified + self._status.added +
File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 933, in __get__
result = self.func(obj)
File "/usr/local/lib/python2.7/site-packages/mercurial/context.py", line 2542, in _status
elif self[f]:
File "/usr/local/lib/python2.7/site-packages/mercurial/context.py", line 99, in __getitem__
return self.filectx(key)
File "/usr/local/lib/python2.7/site-packages/mercurial/context.py", line 2490, in filectx
return self._filectxfn(self._repo, self, path)
File "/usr/local/lib/python2.7/site-packages/mercurial/context.py", line 2387, in getfilectx
cache[path] = func(repo, memctx, path)
File "/usr/local/lib/python2.7/site-packages/hggit/git_handler.py", line 966, in getfilectx
copied=copied_path)
TypeError: __init__() takes at least 5 arguments (6 given)