hg bundle (-r...) fails AttributeError: 'gitrepo' object has no attribute 'branches'
Created originally on Bitbucket by timeless (timeless developer)
#!python
[timeless@gcc2-power8 OpenLiveWriter]$ hg --config extensions.remotebranches=! bundle -r 'user(...)' ../OpenLiveWriter-spell-0.bundle
searching for changes
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.8 (default, Jul 8 2015, 18:13:08) [GCC 4.9.2 20150212 (Red Hat 4.9.2-6)]
** Mercurial Distributed SCM (version 3.6.2+462-bdbb4c73b400+20151214)
** Extensions loaded: strip, mq, histedit, color, record, rebase, blackbox, evolve, hg-git, pager
Traceback (most recent call last):
File "/home/timeless/bin/hg", line 43, in <module>
mercurial.dispatch.run()
File "/home/timeless/hg/crew/mercurial/dispatch.py", line 54, in run
sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
File "/home/timeless/hg/crew/mercurial/dispatch.py", line 116, in dispatch
ret = _runcatch(req)
File "/home/timeless/hg/crew/mercurial/dispatch.py", line 187, in _runcatch
return _dispatch(req)
File "/home/timeless/hg/crew/mercurial/dispatch.py", line 910, in _dispatch
cmdpats, cmdoptions)
File "/home/timeless/hg/crew/mercurial/dispatch.py", line 669, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/home/timeless/hg/crew/mercurial/extensions.py", line 195, in closure
return func(*(args + a), **kw)
File "/home/timeless/hg/crew/hgext/pager.py", line 143, in pagecmd
return orig(ui, options, cmd, cmdfunc)
File "/home/timeless/hg/crew/mercurial/extensions.py", line 195, in closure
return func(*(args + a), **kw)
File "/home/timeless/hg/crew/hgext/color.py", line 518, in colorcmd
return orig(ui_, opts, cmd, cmdfunc)
File "/home/timeless/hg/crew/mercurial/dispatch.py", line 1041, in _runcommand
return checkargs()
File "/home/timeless/hg/crew/mercurial/dispatch.py", line 1001, in checkargs
return cmdfunc()
File "/home/timeless/hg/crew/mercurial/dispatch.py", line 907, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/home/timeless/hg/crew/mercurial/util.py", line 826, in check
return func(*args, **kwargs)
File "/home/timeless/hg/crew/mercurial/extensions.py", line 195, in closure
return func(*(args + a), **kw)
File "/home/timeless/hg/crew/mercurial/util.py", line 826, in check
return func(*args, **kwargs)
File "/home/timeless/hg/crew/hgext/mq.py", line 3535, in mqcommand
return orig(ui, repo, *args, **kwargs)
File "/home/timeless/hg/crew/mercurial/util.py", line 826, in check
return func(*args, **kwargs)
File "/home/timeless/hg/crew/mercurial/commands.py", line 1370, in bundle
portable=True)
File "/home/timeless/hg/crew/mercurial/extensions.py", line 195, in closure
return func(*(args + a), **kw)
File "/home/timeless/hg/hg-git/hggit/__init__.py", line 278, in findcommonoutgoing
force=force)
File "/home/timeless/hg/crew/mercurial/discovery.py", line 47, in findcommonincoming
return treediscovery.findcommonincoming(repo, remote, heads, force)
File "/home/timeless/hg/crew/mercurial/treediscovery.py", line 68, in findcommonincoming
unknown = collections.deque(remote.branches(unknown))
AttributeError: 'gitrepo' object has no attribute 'branches'