Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273135 - mercurial.eclass: when creating working directory do "hg archive" instead of "hg clone"
Summary: mercurial.eclass: when creating working directory do "hg archive" instead of ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-08 04:47 UTC by Alex Dedul
Modified: 2009-06-28 10:25 UTC (History)
0 users

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


Attachments
Do "hg archive" instead of "hg clone" when creating a working directory (mercurial.eclass.patch,427 bytes, patch)
2009-06-08 04:49 UTC, Alex Dedul
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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).