How to retrieve snapshot without .hg directory

André Sintzoff andre.sintzoff at gmail.com
Fri May 14 09:24:41 UTC 2010


2010/5/14 Rokusek, Chris <Chris.Rokusek at emc-inc.com>:

> I have searched a FAQ and done some googling and am will wondering if there
> is a way to export a copy of the source without creating the .hg directory
> (for a big project this takes significant time).  The purpose is for
> creating a separate snapshot of the code without the repository.

If the repository is published, you can use
allow_archive = gz, zip, bz2
as described in
http://mercurial.selenic.com/wiki/PublishingRepositories#Allowing_Archive_Downloads

Thanks to the web server, you are able to get for any revision the
corresponding compressed working directory.

Hope this help,

André



More information about the Mercurial mailing list