hg-git performance on large git repositories.

Dan Villiom Podlaski Christiansen danchr at gmail.com
Mon Sep 20 11:57:50 UTC 2021


Den 19 Sep 2021 kl. 08.38 skrev Uwe Brauer <oub at mat.ucm.es>:

> Hi 
> 
> I am starting to notice a problem when I access large git repositories.

[snip]

>    3. GNU emacs however (that was converted from CVS to Bazzarr to git
>       to hg) has 264610 changesets. There I do notice a siginificant
>       delay in almost every operation:
>       not only
> 
>       a. hg branches but also
> 
>       b. hg ci  etc

hg-git shouldn't be doing anything particular w.r.t. committing. One possible cause is that you have _a_lot_ of draft commits. Try publishing `master` and see if it helps:

$ hg phase -p master

Alternatively, you can enable the `hggit.usephases` configuration setting and pull.

Which version of hg-git, Mercurial and Python are you running?

> I have also the evolve extension enabled, I disabled it, but it did not make any difference.
> 
> 
> Does or did anybody notice something similar?

I regularly use Mercurial with a repository[1] with ~188k commits and a ~44k files in total. I haven't noticed any particular slowness, apart from status and so on — which is to be expected with that many files.

[1] https://github.com/macports/macports-ports

--

Dan Villiom Podlaski Christiansen
danchr at gmail.com — +45 2728 9771




More information about the Mercurial mailing list