[pypy-dev] Contributing to PyPy
Pierre-Yves David
pierre-yves.david at octobus.net
Tue Oct 19 12:29:18 EDT 2021
This will be fixed in the coming release of Mercurial, version 6.0. This
is a client side issue.
In the meantime you can work around the issue by adding `--config
storage.revlog.issue6528.fix-incoming=False` to you clone call.
On 10/19/21 3:11 PM, M A wrote:
> It is fixed? I tried using 'hg clone https://foss.heptapod.net/pypy/pypy pypy' again and saw the same error. Is there something else I need to do?
>
>> On Oct 18, 2021, at 6:54 PM, Pierre-Yves David <pierre-yves.david at octobus.net> wrote:
>>
>> Yeah this was regression that we fixed today: https://bz.mercurial-scm.org/show_bug.cgi?id=6605 thanks for reporting it.
>>
>>
>> On 10/18/21 9:53 PM, M A wrote:
>>> Hi Pierre-Yves. I tried using 'hg clone https://foss.heptapod.net/pypy/pypy' and saw this error:
>>>
>>> $ hg clone https://foss.heptapod.net/pypy/pypy
>>> destination directory: pypy
>>> applying clone bundle from https://cellar-c2.services.clever-cloud.com/heptapod-foss-clonebundles/pypy/pypy-2020-02-12-13-12-optimized-zstd-v2.hg
>>> adding changesets
>>> adding manifests
>>> adding file changes
>>> transaction abort!
>>> rollback completed
>>> ** unknown exception encountered, please report by visiting
>>> ** https://mercurial-scm.org/wiki/BugTracker
>>> ** Python 3.9.7 (default, Sep 3 2021, 04:31:11) [Clang 12.0.5 (clang-1205.0.22.9)]
>>> ** Mercurial Distributed SCM (version 5.9.1)
>>> ** Extensions loaded:
>>> Traceback (most recent call last):
>>> File "/opt/homebrew/bin/hg", line 61, in <module>
>>> dispatch.run()
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run
>>> status = dispatch(req)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch
>>> status = _rundispatch(req)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch
>>> ret = _runcatch(req) or 0
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch
>>> return _callcatch(ui, _runcatchfunc)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch
>>> return scmutil.callcatch(ui, func)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch
>>> return func()
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc
>>> return _dispatch(req)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch
>>> return runcommand(
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand
>>> ret = _runcommand(ui, options, cmd, d)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand
>>> return cmdfunc()
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in <lambda>
>>> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check
>>> return func(*args, **kwargs)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone
>>> r = hg.clone(
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone
>>> exchange.pull(
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull
>>> _maybeapplyclonebundle(pullop)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle
>>> if trypullbundlefromurl(repo.ui, repo, url):
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl
>>> bundle2.applybundle(repo, cg, tr, b'clonebundles', url)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle
>>> return processbundle(repo, unbundler, lambda: tr, source=source)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle
>>> processparts(repo, op, unbundler)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts
>>> _processpart(op, part)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart
>>> handler(op, part)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup
>>> ret = _processchangegroup(
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup
>>> ret = cg.apply(op.repo, tr, source, url, **kwargs)
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply
>>> newrevs, newfiles = _addchangegroupfiles(
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles
>>> added = fl.addgroup(
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup
>>> return self._revlog.addgroup(
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup
>>> for data in deltas:
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528
>>> is_affected = _is_revision_affected_fast_inner(
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner
>>> return _is_revision_affected_inner(
>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner
>>> has_meta = raw_text.startswith(b'\x01\n')
>>> AttributeError: 'memoryview' object has no attribute 'startswith'
>>>
>>>
>>>> On Oct 18, 2021, at 7:25 AM, Pierre-Yves David <pierre-yves.david at octobus.net> wrote:
>>>>
>>>> Can you try with the latest Mercurial release ? (5.9.2)
>>>>
>>>> On 9/19/21 7:44 PM, M A wrote:
>>>>> Hi I am interested in contributing to PyPy. I tried to clone the source code repository using hg but saw errors. I then found this git repo: https://github.com/mozillazg/pypy. I was actually able to clone it successfully. Could someone still contribute to PyPy using git instead of hg?
>>>>>
>>>>> If you are curious here are the errors I see when I try to clone the repository using hg:
>>>>>
>>>>> hg clone https://foss.heptapod.net/pypy/pypy
>>>>> destination directory: pypy
>>>>> applying clone bundle from https://cellar-c2.services.clever-cloud.com/heptapod-foss-clonebundles/pypy/pypy-2020-02-12-13-12-optimized-zstd-v2.hg
>>>>> adding changesets
>>>>> adding manifests
>>>>> adding file changes
>>>>> transaction abort!
>>>>> rollback completed
>>>>> ** unknown exception encountered, please report by visiting
>>>>> ** https://mercurial-scm.org/wiki/BugTracker
>>>>> ** Python 3.9.7 (default, Sep 3 2021, 04:31:11) [Clang 12.0.5 (clang-1205.0.22.9)]
>>>>> ** Mercurial Distributed SCM (version 5.9.1)
>>>>> ** Extensions loaded:
>>>>> Traceback (most recent call last):
>>>>> File "/opt/homebrew/bin/hg", line 61, in <module>
>>>>> dispatch.run()
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run
>>>>> status = dispatch(req)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch
>>>>> status = _rundispatch(req)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch
>>>>> ret = _runcatch(req) or 0
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch
>>>>> return _callcatch(ui, _runcatchfunc)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch
>>>>> return scmutil.callcatch(ui, func)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch
>>>>> return func()
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc
>>>>> return _dispatch(req)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch
>>>>> return runcommand(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand
>>>>> ret = _runcommand(ui, options, cmd, d)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand
>>>>> return cmdfunc()
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in <lambda>
>>>>> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check
>>>>> return func(*args, **kwargs)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone
>>>>> r = hg.clone(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone
>>>>> exchange.pull(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull
>>>>> _maybeapplyclonebundle(pullop)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle
>>>>> if trypullbundlefromurl(repo.ui, repo, url):
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl
>>>>> bundle2.applybundle(repo, cg, tr, b'clonebundles', url)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle
>>>>> return processbundle(repo, unbundler, lambda: tr, source=source)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle
>>>>> processparts(repo, op, unbundler)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts
>>>>> _processpart(op, part)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart
>>>>> handler(op, part)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup
>>>>> ret = _processchangegroup(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup
>>>>> ret = cg.apply(op.repo, tr, source, url, **kwargs)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply
>>>>> newrevs, newfiles = _addchangegroupfiles(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles
>>>>> added = fl.addgroup(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup
>>>>> return self._revlog.addgroup(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup
>>>>> for data in deltas:
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528
>>>>> is_affected = _is_revision_affected_fast_inner(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner
>>>>> return _is_revision_affected_inner(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner
>>>>> has_meta = raw_text.startswith(b'\x01\n')
>>>>> AttributeError: 'memoryview' object has no attribute 'startswith'
>>>>>
>>>>> ** Extensions loaded:
>>>>> Traceback (most recent call last):
>>>>> File "/opt/homebrew/bin/hg", line 61, in <module>
>>>>> dispatch.run()
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run
>>>>> status = dispatch(req)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch
>>>>> status = _rundispatch(req)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch
>>>>> ret = _runcatch(req) or 0
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch
>>>>> return _callcatch(ui, _runcatchfunc)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch
>>>>> return scmutil.callcatch(ui, func)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch
>>>>> return func()
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc
>>>>> return _dispatch(req)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch
>>>>> return runcommand(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand
>>>>> ret = _runcommand(ui, options, cmd, d)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand
>>>>> return cmdfunc()
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in <lambda>
>>>>> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check
>>>>> return func(*args, **kwargs)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone
>>>>> r = hg.clone(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone
>>>>> exchange.pull(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull
>>>>> _maybeapplyclonebundle(pullop)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle
>>>>> if trypullbundlefromurl(repo.ui, repo, url):
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl
>>>>> bundle2.applybundle(repo, cg, tr, b'clonebundles', url)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle
>>>>> return processbundle(repo, unbundler, lambda: tr, source=source)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle
>>>>> processparts(repo, op, unbundler)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts
>>>>> _processpart(op, part)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart
>>>>> handler(op, part)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup
>>>>> ret = _processchangegroup(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup
>>>>> ret = cg.apply(op.repo, tr, source, url, **kwargs)
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply
>>>>> newrevs, newfiles = _addchangegroupfiles(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles
>>>>> added = fl.addgroup(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup
>>>>> return self._revlog.addgroup(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup
>>>>> for data in deltas:
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528
>>>>> is_affected = _is_revision_affected_fast_inner(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner
>>>>> return _is_revision_affected_inner(
>>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner
>>>>> has_meta = raw_text.startswith(b'\x01\n')
>>>>> AttributeError: 'memoryview' object has no attribute 'startswith'
>>>>>
>>>>> _______________________________________________
>>>>> pypy-dev mailing list
>>>>> pypy-dev at python.org
>>>>> https://mail.python.org/mailman/listinfo/pypy-dev
>>>> --
>>>> Pierre-Yves David
>>>>
>> --
>> Pierre-Yves David
>>
--
Pierre-Yves David
More information about the pypy-dev
mailing list