From pierre.augier at univ-grenoble-alpes.fr Mon Feb 2 09:56:05 2026 From: pierre.augier at univ-grenoble-alpes.fr (PIERRE AUGIER) Date: Mon, 2 Feb 2026 10:56:05 +0100 (CET) Subject: [SPAM] Re: error with 7.2: module 'mercurial.bundle2' has no attribute 'parthandler' In-Reply-To: References: Message-ID: <1620420353.15003575.1770026165175.JavaMail.zimbra@univ-grenoble-alpes.fr> -- Pierre Augier - CR CNRS http://www.legi.grenoble-inp.fr LEGI (UMR 5519) Laboratoire des Ecoulements Geophysiques et Industriels BP53, 38041 Grenoble Cedex, France tel:+33.4.56.52.86.16 ----- Mail original ----- > De: "Pierre-Yves David" > ?: "mercurial" > Envoy?: Vendredi 30 Janvier 2026 15:48:43 > Objet: [SPAM] Re: error with 7.2: module 'mercurial.bundle2' has no attribute 'parthandler' > On 1/30/26 15:38, Marcos Cruz wrote: > > > > i have upgraded from 7.1.2 to 7.2 (on debian 13.3, x86_64) the usual > way: > > ``` > > > > pipx upgrade mercurial --include-injected > upgraded package mercurial from 7.1.2 to 7.2 (location: > /home/USER/.local/pipx/venvs/mercurial) > upgraded package hg-evolve from 11.1.9 to 12.0.0 (location: > /home/USER/.local/pipx/venvs/mercurial) > hg-git is already at latest version 1.2.0 (location: > /home/USER/.local/pipx/venvs/mercurial) > ``` > > now, before executing any command, mercurial prints the following error, > related to the set up of hggit > > ``` > Traceback (most recent call last): > File > "/home/USER/.local/pipx/venvs/mercurial/lib/python3.13/site-packages/mercurial/extensions.py", > line 291, in _runextsetup > extsetup(ui) > ~~~~~~~~^^^^ > File > "/home/USER/.local/pipx/venvs/mercurial/lib/python3.13/site-packages/mercurial/exthelper.py", > line 227, in finalextsetup > c(ui) > ~^^^^ > File > "/home/USER/.local/pipx/venvs/mercurial/lib/python3.13/site-packages/hggit/bundle.py", > line 76, in install_server_support > @bundle2.parthandler(BUNDLEPART_MAP) > ^^^^^^^^^^^^^^^^^^^ > AttributeError: module 'mercurial.bundle2' has no attribute 'parthandler' > *** failed to set up extension hggit: module 'mercurial.bundle2' has no > attribute 'parthandler' > ``` > > is it an incompatibility between mercurial 7.2 and hggit 1.2.0? > > > > > > Yes, the work to make it hggit compatible with 7.2 should ideally have happened > during the 7.2rc period. However hggit is maintained by volunteer and they > missed the windows for 7.2. > > The incompatibility have been reported here : [ > https://foss.heptapod.net/mercurial/hg-git/-/issues/456 | > https://foss.heptapod.net/mercurial/hg-git/-/issues/456 ] > > For use case where you need hg-git, You can downgrade to 7.1 in the meantime. Warning, the last hg-git version on PyPI is not compatible with Mercurial 7. In practice, for Mercurial 7.1.2, you can use uv tool install "mercurial<7.2" \ --with hg-git at https://foss.heptapod.net/mercurial/hg-git/-/archive/branch/default/hg-git-branch-default.tar.gz \ --with hg-evolve,certifi -p 3.13 > > -- > Pierre-Yves David > > _______________________________________________ > Mercurial mailing list > Mercurial at lists.mercurial-scm.org > https://lists.mercurial-scm.org/mailman/listinfo/mercurial