Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 273135

Summary: mercurial.eclass: when creating working directory do "hg archive" instead of "hg clone"
Product: Gentoo Linux Reporter: Alex Dedul <rotmer>
Component: EclassesAssignee: Krzysztof Pawlik (RETIRED) <nelchael>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Do "hg archive" instead of "hg clone" when creating a working directory

Description Alex Dedul 2009-06-08 04:47:42 UTC
Now when creating working directory in mercurial_fetch() it calls "hg clone" which is quite slow on a large repositories. It copies the whole repository with all changesets/manifests/etc while all we need is just the latest files from repository and "hg archive" command does exactly that and it is much faster. So attaching trivial patch for this.

Reproducible: Always

Steps to Reproduce:
Comment 1 Alex Dedul 2009-06-08 04:49:30 UTC
Created attachment 193847 [details, diff]
Do "hg archive" instead of "hg clone" when creating a working directory
Comment 2 Krzysztof Pawlik (RETIRED) gentoo-dev 2009-06-28 10:25:07 UTC
No, some packages may rely on being built inside a repository (for example to get revision id).