Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349483 - mercurial.eclass is awfully slow when cloning locally
Summary: mercurial.eclass is awfully slow when cloning locally
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All All
: High enhancement
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-23 12:05 UTC by Julien Durillon
Modified: 2010-12-23 23:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
makes the local copy for mercurial faster (mercurial.eclass.patch,672 bytes, patch)
2010-12-23 12:07 UTC, Julien Durillon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Durillon 2010-12-23 12:05:20 UTC
When I install a package like xulrunner in scm version, the hg clone operation takes 15 minutes between /var/paludis/distfiles/hg-src and /var/tmp/paludis/[...]/work.

So it is faster, and cleverer to do a hg archive than a hg clone between those two directories.

I have attached the patch.

Reproducible: Always
Comment 1 Julien Durillon 2010-12-23 12:07:08 UTC
Created attachment 257861 [details, diff]
makes the local copy for mercurial faster
Comment 2 Krzysztof Pawlik (RETIRED) gentoo-dev 2010-12-23 23:48:52 UTC
No, no and no. Some builds expect to be able to extract exact version information or be operated from a clone, not unversioned directory. It's interesting why it takes so long, `hg clone' should use hard links when possible:

"For efficiency, hardlinks are used for cloning whenever the source and destination are on the same filesystem (note this applies only to the repository data, not to the working directory)." (hg help clone)