Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • heptapod heptapod
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • heptapodheptapod
  • heptapodheptapod
  • Issues
  • #539
Closed
Open
Issue created Sep 10, 2021 by tapika@tapika

hg clone fails with AttributeError

Summary

Raising in here, based on discussion in here: pypy/pypy#3547 (closed)

Using hg clone results in error.

Steps to reproduce

C:\PrototypingQuick\Python_8_2021>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.6 (default, Jul 24 2021, 23:35:14) [MSC v.1929 64 bit (AMD64)]
** Mercurial Distributed SCM (version 5.9+hg13.e5a4153abfd0)
** Extensions loaded:
Traceback (most recent call last):
  File "<string>", line 13, in <module>
  File "mercurial.dispatch", line 144, in run
  File "mercurial.dispatch", line 250, in dispatch
  File "mercurial.dispatch", line 294, in _rundispatch
  File "mercurial.dispatch", line 470, in _runcatch
  File "mercurial.dispatch", line 480, in _callcatch
  File "mercurial.scmutil", line 153, in callcatch
  File "mercurial.dispatch", line 460, in _runcatchfunc
  File "mercurial.dispatch", line 1273, in _dispatch
  File "mercurial.dispatch", line 918, in runcommand
  File "mercurial.dispatch", line 1285, in _runcommand
  File "mercurial.dispatch", line 1271, in <lambda>
  File "mercurial.util", line 1886, in check
  File "mercurial.commands", line 1955, in clone
  File "mercurial.hg", line 942, in clone
  File "mercurial.exchange", line 1668, in pull
  File "mercurial.exchange", line 2779, in _maybeapplyclonebundle
  File "mercurial.exchange", line 2810, in trypullbundlefromurl
  File "mercurial.bundle2", line 375, in applybundle
  File "mercurial.bundle2", line 486, in processbundle
  File "mercurial.bundle2", line 494, in processparts
  File "mercurial.bundle2", line 568, in _processpart
  File "mercurial.bundle2", line 2025, in handlechangegroup
  File "mercurial.bundle2", line 498, in _processchangegroup
  File "mercurial.changegroup", line 444, in apply
  File "mercurial.changegroup", line 1946, in _addchangegroupfiles
  File "mercurial.filelog", line 168, in addgroup
  File "mercurial.revlog", line 2620, in addgroup
  File "mercurial.revlogutils.rewrite", line 783, in filter_delta_issue6528
  File "mercurial.revlogutils.rewrite", line 649, in _is_revision_affected_fast_inner
  File "mercurial.revlogutils.rewrite", line 592, in _is_revision_affected_inner
AttributeError: 'memoryview' object has no attribute 'startswith'


C:\PrototypingQuick\Python_8_2021>hg --version
Mercurial Distributed SCM (version 5.9+hg13.e5a4153abfd0)
(see https://mercurial-scm.org for more information)

Copyright (C) 2005-2021 Olivia Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Similar issue if you use 5.9.1 / python 2:

C:\PrototypingQuick\Python_8_2021>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 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 5.9.1)
** Extensions loaded:
Traceback (most recent call last):
  File "hg", line 61, in <module>
  File "mercurial\dispatch.pyc", line 144, in run
  File "mercurial\dispatch.pyc", line 250, in dispatch
  File "mercurial\dispatch.pyc", line 294, in _rundispatch
  File "mercurial\dispatch.pyc", line 470, in _runcatch
  File "mercurial\dispatch.pyc", line 480, in _callcatch
  File "mercurial\scmutil.pyc", line 153, in callcatch
  File "mercurial\dispatch.pyc", line 460, in _runcatchfunc
  File "mercurial\dispatch.pyc", line 1274, in _dispatch
  File "mercurial\dispatch.pyc", line 918, in runcommand
  File "mercurial\dispatch.pyc", line 1285, in _runcommand
  File "mercurial\dispatch.pyc", line 1271, in <lambda>
  File "mercurial\util.pyc", line 1886, in check
  File "mercurial\commands.pyc", line 1968, in clone
  File "mercurial\hg.pyc", line 949, in clone
  File "mercurial\exchange.pyc", line 1668, in pull
  File "mercurial\exchange.pyc", line 2779, in _maybeapplyclonebundle
  File "mercurial\exchange.pyc", line 2810, in trypullbundlefromurl
  File "mercurial\bundle2.pyc", line 375, in applybundle
  File "mercurial\bundle2.pyc", line 486, in processbundle
  File "mercurial\bundle2.pyc", line 494, in processparts
  File "mercurial\bundle2.pyc", line 568, in _processpart
  File "mercurial\bundle2.pyc", line 2032, in handlechangegroup
  File "mercurial\bundle2.pyc", line 498, in _processchangegroup
  File "mercurial\changegroup.pyc", line 451, in apply
  File "mercurial\changegroup.pyc", line 1950, in _addchangegroupfiles
  File "mercurial\filelog.pyc", line 173, in addgroup
  File "mercurial\revlog.pyc", line 2620, in addgroup
  File "mercurial\revlogutils\rewrite.pyc", line 790, in filter_delta_issue6528
  File "mercurial\revlogutils\rewrite.pyc", line 653, in _is_revision_affected_fast_inner
  File "mercurial\revlogutils\rewrite.pyc", line 592, in _is_revision_affected_inner
AttributeError: 'buffer' object has no attribute 'startswith'
Edited Sep 10, 2021 by tapika
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking