https://bz.mercurial-scm.org/show_bug.cgi?id=6476

            Bug ID: 6476
           Summary: "bytes length not a multiple of item size" during `hg
                    in`
           Product: Mercurial
           Version: 5.6.1
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzi...@mercurial-scm.org
          Reporter: r...@perspexis.com
                CC: mercurial-devel@mercurial-scm.org
    Python Version: ---

I'm running Ubuntu in WSL on Windows 10, with mercurial run from source.

When doing a simple `hg pull` in one of my repos I got the following traceback:

```
$ hg pull
pulling from ssh://<snip>
searching for changes
no changes found
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 3.9.1 (default, Jan 25 2021, 17:58:41) [GCC 9.3.0]
** Mercurial Distributed SCM (version 5.6.1)
** Extensions loaded: histedit, extdiff, pager, fetch, graphlog, record,
rebase, strip, evolve, convert
Traceback (most recent call last):
  File "/home/russ/bin/venv_for_python_apps/bin/hg", line 43, in <module>
    dispatch.run()
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/dispatch.py",
line 113, in run
    status = dispatch(req)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/dispatch.py",
line 303, in dispatch
    ret = _runcatch(req) or 0
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/dispatch.py",
line 479, in _runcatch
    return _callcatch(ui, _runcatchfunc)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/dispatch.py",
line 488, in _callcatch
    return scmutil.callcatch(ui, func)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/scmutil.py",
line 153, in callcatch
    return func()
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/dispatch.py",
line 469, in _runcatchfunc
    return _dispatch(req)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/dispatch.py",
line 1232, in _dispatch
    return runcommand(
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/dispatch.py",
line 917, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext/pager.py",
line 76, in pagecmd
    return orig(ui, options, cmd, cmdfunc)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/dispatch.py",
line 1244, in _runcommand
    return cmdfunc()
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/dispatch.py",
line 1230, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/util.py",
line 1867, in check
    return func(*args, **kwargs)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/util.py",
line 1867, in check
    return func(*args, **kwargs)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext3rd/evolve/__init__.py",
line 708, in wrapmayobsoletewc
    res = origfn(ui, repo, *args, **opts)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/util.py",
line 1867, in check
    return func(*args, **kwargs)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/util.py",
line 1867, in check
    return func(*args, **kwargs)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext/rebase.py",
line 2159, in pullrebase
    ret = orig(ui, repo, *args, **opts)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/util.py",
line 1867, in check
    return func(*args, **kwargs)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/commands.py",
line 5330, in pull
    modheads = exchange.pull(
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/exchange.py",
line 1827, in pull
    _fullpullbundle2(repo, pullop)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/exchange.py",
line 1693, in _fullpullbundle2
    _pullbundle2(pullop)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/exchange.py",
line 2018, in _pullbundle2
    _pullbundle2extraprepare(pullop, kwargs)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext3rd/evolve/obsexchange.py",
line 71, in _addobscommontob2pull
    boundaries = obsdiscovery.buildpullobsmarkersboundaries(pullop)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext3rd/evolve/obsdiscovery.py",
line 859, in buildpullobsmarkersboundaries
    missing = findmissingrange(repo.ui, repo, pullop.remote, revs)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext3rd/evolve/obsdiscovery.py",
line 79, in findmissingrange
    local.stablerange.warmup(local)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/localrepo.py",
line 179, in __get__
    return getattr(unfi, self.name)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/pycompat.py",
line 303, in w
    return f(object, sysstr(name), *args)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/localrepo.py",
line 178, in __get__
    return super(unfilteredpropertycache, self).__get__(unfi)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/util.py",
line 1747, in __get__
    result = self.func(obj)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext3rd/evolve/stablerangecache.py",
line 519, in stablerange
    cache.update(self)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext3rd/evolve/genericcaches.py",
line 120, in update
    self._updatefrom(repo, data)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext3rd/evolve/stablerangecache.py",
line 114, in _updatefrom
    for sub in self.subranges(repo, rangeid):
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext3rd/evolve/stablerange.py",
line 655, in subranges
    value = self._subranges(repo, rangeid)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext3rd/evolve/stablerange.py",
line 735, in _subranges
    if self.rangelength(repo, rangeid) == 1:
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext3rd/evolve/stablerange.py",
line 648, in rangelength
    return self.depthrev(repo, headrev) - index
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext3rd/evolve/stablerange.py",
line 643, in depthrev
    return repo.depthcache.get(rev)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/localrepo.py",
line 178, in __get__
    return super(unfilteredpropertycache, self).__get__(unfi)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/mercurial/util.py",
line 1747, in __get__
    result = self.func(obj)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext3rd/evolve/depthcache.py",
line 79, in depthcache
    cache.update(self)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext3rd/evolve/genericcaches.py",
line 109, in update
    self.load(repo)
  File
"/home/russ/bin/venv_for_python_apps/lib/python3.9/site-packages/hgext3rd/evolve/depthcache.py",
line 191, in load
    compat.arrayfrombytes(self._data, data[self._cachekeysize:])
ValueError: bytes length not a multiple of item size
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to