[Bug 4652] New: hg pull from bundle can crash
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Wed May 6 17:38:18 UTC 2015
http://bz.selenic.com/show_bug.cgi?id=4652
Priority: normal
Bug ID: 4652
CC: mercurial-devel at selenic.com,
pierre-yves.david at ens-lyon.org
Assignee: bugzilla at selenic.com
Summary: hg pull from bundle can crash
Severity: bug
Classification: Unclassified
OS: Mac OS
Reporter: lcharignon at fb.com
Hardware: Macintosh
Status: UNCONFIRMED
Version: 3.4-rc
Component: evolution
Product: Mercurial
As far as I know, not a regression.
Repro steps:
- Create two new commits (rev num 106 and 107 here)
- Prune 107 and 106:
lcharignon at lcharignon-mbp$ ~/sandbox/repo hg prune 107
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
working directory now at bce959d16d50
1 changesets pruned
lcharignon at lcharignon-mbp$ ~/sandbox/repo hg prune 106
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
working directory now at 97ed2ffb22ae
1 changesets pruned
- Strip 107 and 106
lcharignon at lcharignon-mbp$ ~/sandbox/repo hg strip 107 --hidden
saved backup bundle to
/Users/lcharignon/sandbox/repo/.hg/strip-backup/802f58042abb-cd1713a6-backup.hg
lcharignon at lcharignon-mbp$ ~/sandbox/repo hg strip 106 --hidden
saved backup bundle to
/Users/lcharignon/sandbox/repo/.hg/strip-backup/bce959d16d50-7d77bc3b-backup.hg
- Pull from the latest backup:
lcharignon at lcharignon-mbp$ ~/sandbox/repo hg pull
.hg/strip-backup/bce959d16d50-7d77bc3b-backup.hg
pulling from .hg/strip-backup/bce959d16d50-7d77bc3b-backup.hg
** Unknown exception encountered with possibly-broken third-party extension
b2xcompat
** which supports versions unknown of Mercurial.
** Please disable b2xcompat and try your action again.
** If that fixes the bug please report it to the extension author.
** Python 2.7.6 (default, Sep 9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple
LLVM 6.0 (clang-600.0.39)]
** Mercurial Distributed SCM (version 3.4-rc+33-1f9127c9239b)
** Extensions loaded: b2xcompat, backups, blackbox, chistedit, color, crecord,
fbhistedit, githelp, histedit, lz4revlog, pager, phabdiff, phrevset, progress,
purge, rebase, record, reflog, remotefilelog, remotenames, reset, shelve,
strip, tweakdefaults, smartlog, patchbomb, evolve, extdiff
Traceback (most recent call last):
File "/usr/local/bin/hg.real", line 43, in <module>
mercurial.dispatch.run()
File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 29, in
run
sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 91, in
dispatch
ret = _runcatch(req)
File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 160, in
_runcatch
return _dispatch(req)
File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 885, in
_dispatch
cmdpats, cmdoptions)
File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 646, in
runcommand
ret = _runcommand(ui, options, cmd, d)
File "/Library/Python/2.7/site-packages/mercurial/extensions.py", line 164,
in closure
return func(*(args + a), **kw)
File "/Library/Python/2.7/site-packages/hgext/pager.py", line 160, in pagecmd
return orig(ui, options, cmd, cmdfunc)
File "/Library/Python/2.7/site-packages/mercurial/extensions.py", line 164,
in closure
return func(*(args + a), **kw)
File "/Library/Python/2.7/site-packages/hgext/color.py", line 521, in
colorcmd
return orig(ui_, opts, cmd, cmdfunc)
File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 976, in
_runcommand
return checkargs()
File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 947, in
checkargs
return cmdfunc()
File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 882, in
<lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/Library/Python/2.7/site-packages/mercurial/util.py", line 716, in
check
return func(*args, **kwargs)
File "/Library/Python/2.7/site-packages/mercurial/extensions.py", line 164,
in closure
return func(*(args + a), **kw)
File "/Library/Python/2.7/site-packages/mercurial/util.py", line 716, in
check
return func(*args, **kwargs)
File "/Library/Python/2.7/site-packages/remotenames.py", line 455, in
expullcmd
return orig(ui, repo, source, **opts)
File "/Library/Python/2.7/site-packages/mercurial/util.py", line 716, in
check
return func(*args, **kwargs)
File "/Library/Python/2.7/site-packages/mercurial/extensions.py", line 164,
in closure
return func(*(args + a), **kw)
File "/Library/Python/2.7/site-packages/mercurial/util.py", line 716, in
check
return func(*args, **kwargs)
File "/Library/Python/2.7/site-packages/hgext/evolve.py", line 637, in
warnobserrors
ret = orig(ui, repo, *args, **kwargs)
File "/Library/Python/2.7/site-packages/mercurial/util.py", line 716, in
check
return func(*args, **kwargs)
File "/Library/Python/2.7/site-packages/mercurial/extensions.py", line 164,
in closure
return func(*(args + a), **kw)
File "/Library/Python/2.7/site-packages/mercurial/util.py", line 716, in
check
return func(*args, **kwargs)
File "/Library/Python/2.7/site-packages/hgext/evolve.py", line 615, in
wrapmayobsoletewc
res = origfn(ui, repo, *args, **opts)
File "/Library/Python/2.7/site-packages/mercurial/util.py", line 716, in
check
return func(*args, **kwargs)
File "/Library/Python/2.7/site-packages/mercurial/extensions.py", line 164,
in closure
return func(*(args + a), **kw)
File "/Library/Python/2.7/site-packages/mercurial/util.py", line 716, in
check
return func(*args, **kwargs)
File "/Library/Python/2.7/site-packages/remotefilelog/__init__.py", line 535,
in pull
result = orig(ui, repo, *pats, **opts)
File "/Library/Python/2.7/site-packages/mercurial/util.py", line 716, in
check
return func(*args, **kwargs)
File "/Library/Python/2.7/site-packages/mercurial/extensions.py", line 164,
in closure
return func(*(args + a), **kw)
File "/Library/Python/2.7/site-packages/mercurial/util.py", line 716, in
check
return func(*args, **kwargs)
File "/Library/Python/2.7/site-packages/hgext/rebase.py", line 1055, in
pullrebase
orig(ui, repo, *args, **opts)
File "/Library/Python/2.7/site-packages/mercurial/util.py", line 716, in
check
return func(*args, **kwargs)
File "/Library/Python/2.7/site-packages/mercurial/commands.py", line 5122, in
pull
bookmarks=opts.get('bookmark', ())).cgresult
File "/Library/Python/2.7/site-packages/mercurial/extensions.py", line 164,
in closure
return func(*(args + a), **kw)
File "/Library/Python/2.7/site-packages/remotenames.py", line 50, in expull
res = orig(repo, remote, *args, **kwargs)
File "/Library/Python/2.7/site-packages/mercurial/exchange.py", line 886, in
pull
_pulldiscovery(pullop)
File "/Library/Python/2.7/site-packages/mercurial/exchange.py", line 928, in
_pulldiscovery
step(pullop)
File "/Library/Python/2.7/site-packages/mercurial/exchange.py", line 939, in
_pulldiscoverychangegroup
force=pullop.force)
File "/Library/Python/2.7/site-packages/mercurial/discovery.py", line 46, in
findcommonincoming
abortwhenunrelated=not force)
File "/Library/Python/2.7/site-packages/mercurial/setdiscovery.py", line 142,
in findcommonheads
srvheadhashes = remote.heads()
File "/Library/Python/2.7/site-packages/mercurial/localrepo.py", line 104, in
heads
return self._repo.heads()
File "/Library/Python/2.7/site-packages/mercurial/localrepo.py", line 1680,
in heads
heads = self.changelog.heads(start)
File "/Library/Python/2.7/site-packages/mercurial/revlog.py", line 754, in
heads
return [self.node(r) for r in self.headrevs()]
File "/Library/Python/2.7/site-packages/mercurial/changelog.py", line 211, in
node
raise error.FilteredIndexError(rev)
mercurial.error.FilteredIndexError: 106
[Exit 1]
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list