Archive from remote repository

Brendan Cully brendan at kublai.com
Mon Jun 1 14:59:35 CDT 2009


On Monday, 01 June 2009 at 22:46, Stanimir Stamenkov wrote:
> I'm new to Mercurial and I'm still learning.  As far as I've got 
> there's no built-in support for shallow and partial cloning.  Is 
> there a command to archive/checkout/export a single revision of a 
> remote repository?
> 
> I've just needed this while trying to get very small part (~350 KB) 
> of the NetBeans sources.  Checking out a ~1 GB repository is not an 
> acceptable option for me as I have pretty slow Internet connection 
> for such amounts of data.

hgweb can optionally generate archives of any revision on
demand. Unfortunately, this feature is disabled at hg.netbeans.org. If
it weren't, you could use a link like:

http://hg.netbeans.org/main/archive/tip.tar.gz


More information about the Mercurial mailing list