"error: pretxnchangegroup.a_treeclosure hook raised an exception: ''"

NEW
Unassigned

Status

2 years ago
2 years ago

People

(Reporter: philor, Unassigned)

Tracking

Details

(Reporter)

Description

2 years ago
remote: error: pretxnchangegroup.a_treeclosure hook raised an exception: ''
remote: transaction abort!
remote: rollback completed
remote: ** unknown exception encountered, please report by visiting
remote: ** https://mercurial-scm.org/wiki/BugTracker
remote: ** Python 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]
remote: ** Mercurial Distributed SCM (version 4.0.1)
remote: ** Extensions loaded: blackbox, clonebundles, bundleclone, obsolescencehacks, pushlog, serverlog, readonly, vcsreplicator
remote: Traceback (most recent call last):
remote:   File "/var/hg/venv_pash/bin/hg", line 45, in <module>
remote:     mercurial.dispatch.run()
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/dispatch.py", line 60, in run
remote:     sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/dispatch.py", line 126, in dispatch
remote:     ret = _runcatch(req)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/dispatch.py", line 216, in _runcatch
remote:     return callcatch(ui, _runcatchfunc)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/dispatch.py", line 225, in callcatch
remote:     return func()
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/dispatch.py", line 205, in _runcatchfunc
remote:     return _dispatch(req)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/dispatch.py", line 901, in _dispatch
remote:     cmdpats, cmdoptions)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/dispatch.py", line 650, in runcommand
remote:     ret = _runcommand(ui, options, cmd, d)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/dispatch.py", line 909, in _runcommand
remote:     return cmdfunc()
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/dispatch.py", line 898, in <lambda>
remote:     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/util.py", line 1037, in check
remote:     return func(*args, **kwargs)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/commands.py", line 6575, in serve
remote:     s.serve_forever()
remote:   File "/var/hg/version-control-tools/hgext/serverlog/__init__.py", line 320, in serve_forever
remote:     return super(sshserverwrapped, self).serve_forever()
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/sshserver.py", line 104, in serve_forever
remote:     while self.serve_one():
remote:   File "/var/hg/version-control-tools/hgext/serverlog/__init__.py", line 351, in serve_one
remote:     return super(sshserverwrapped, self).serve_one()
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/sshserver.py", line 122, in serve_one
remote:     rsp = wireproto.dispatch(self.repo, self, cmd)
remote:   File "/var/hg/version-control-tools/hgext/serverlog/__init__.py", line 343, in dispatch
remote:     return origdispatch(repo, proto, cmd)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/extensions.py", line 220, in closure
remote:     return func(*(args + a), **kw)
remote:   File "/var/hg/version-control-tools/pylib/vcsreplicator/vcsreplicator/hgext.py", line 359, in wireprotodispatch
remote:     return orig(repo, proto, command)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/wireproto.py", line 575, in dispatch
remote:     return func(repo, proto, *args)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/wireproto.py", line 899, in unbundle
remote:     proto._client())
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/exchange.py", line 1725, in unbundle
remote:     op = bundle2.processbundle(repo, cg, op=op)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/bundle2.py", line 356, in processbundle
remote:     _processpart(op, part)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/bundle2.py", line 433, in _processpart
remote:     handler(op, part)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/bundle2.py", line 1369, in handlechangegroup
remote:     ret = cg.apply(op.repo, 'bundle2', 'bundle2', expectedtotal=nbchangesets)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/changegroup.py", line 374, in apply
remote:     repo.hook('pretxnchangegroup', throw=True, **hookargs)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/localrepo.py", line 600, in hook
remote:     return hook.hook(self.ui, self, name, throw, **args)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/hook.py", line 205, in hook
remote:     res = runhooks(ui, repo, name, hooks, throw=throw, **args)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/hook.py", line 255, in runhooks
remote:     throw)
remote:   File "/var/hg/venv_pash/lib/python2.7/site-packages/mercurial/hook.py", line 99, in _pythonhook
remote:     r = obj(ui=ui, repo=repo, hooktype=name, **args)
remote:   File "/var/hg/version-control-tools/hghooks/mozhghooks/treeclosure.py", line 70, in hook
remote:     return 0 if isPushAllowed(repo, treestatus_name) else 1
remote:   File "/var/hg/version-control-tools/hghooks/mozhghooks/treeclosure.py", line 37, in isPushAllowed
remote:     u = urlopen(url)
remote:   File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
remote:     return opener.open(url, data, timeout)
remote:   File "/usr/lib64/python2.7/urllib2.py", line 431, in open
remote:     response = self._open(req, data)
remote:   File "/usr/lib64/python2.7/urllib2.py", line 449, in _open
remote:     '_open', req)
remote:   File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
remote:     result = func(*args)
remote:   File "/usr/lib64/python2.7/urllib2.py", line 1258, in https_open
remote:     context=self._context, check_hostname=self._check_hostname)
remote:   File "/usr/lib64/python2.7/urllib2.py", line 1217, in do_open
remote:     r = h.getresponse(buffering=True)
remote:   File "/usr/lib64/python2.7/httplib.py", line 1089, in getresponse
remote:     response.begin()
remote:   File "/usr/lib64/python2.7/httplib.py", line 444, in begin
remote:     version, status, reason = self._read_status()
remote:   File "/usr/lib64/python2.7/httplib.py", line 408, in _read_status
remote:     raise BadStatusLine(line)
remote: httplib.BadStatusLine: ''


And when I pushed again as soon as I got over the shock, it went through.
You need to log in before you can comment on or make changes to this bug.