OpenJDK (Java) migrating from Mercurial?

Arne Babenhauserheide arne_bab at web.de
Mon Nov 18 21:19:29 UTC 2019


Malcolm Matalka <mmatalka at gmail.com> writes:

> Craig Ozancin <c.ozancin at gmail.com> writes:
> I think this is also a problem, though.  As someone who is a big hg fan
> only recently, I struggled for awhile to figure out how to do branching
> in hg and I probably still don't do it very well.  I, almost
> exclusively, use bookmarks.  And because there are so many options out
> there, there is also no definitive "here is how to do it" document.  The
> technical information is also conflicting.  Are hg branches too
> expensive for git-like branching?  Some say yes, some say no.

I checked that with 10k branches and found no performance problems.

And this is also what I miss in most discussions between git and
anything else: Checking claims before making them.

If you wonder whether branches are expensive, it is very easy to simply
check that.


hg init testbranching
cd testbranching
echo 1>1; hg ci -Am zero
echo 2>1; hg ci -Am one
time for i in {2..100}; do echo $i > $i; hg update -q $((($i / 2))); hg branch -q b$i; hg ci -qAm $i; done
time for i in {102..200}; do echo $i > $i; hg update -q $((($i / 2))); hg branch -q b$i; hg ci -qAm $i; done


Though I have to say that I’m a bit surprised that this only does about
one loop iteration per second. I remember hg being faster at this.
Startup time is around 300ms on my machine, and I don’t have slow disks.


Best wishes,
Arne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1076 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20191118/60010f32/attachment.asc>


More information about the Mercurial mailing list