"hg archive" with remote URL

Isaac Jurado diptongo at gmail.com
Wed Aug 7 17:54:18 UTC 2013


Replying Mutlu Dogruel:
> Hi,
>
> Is there any plan to support "hg archive" with remote URLs, as in:
>
> git archive --remote=ssh://git@bitbucket.org/username/reponame.git --format=tar --output="file.tar" master
>
> In deployment scenarios, this feature will be very useful in general,
> especially for platforms using the Opscode Chef cookbooks. The
> alternative is of course to clone, archive a specific version and then
> delete the .hg directory, but while there is an "hg archive" command,
> I think it must support remote repositories, too. Any thoughts or
> suggestions on this?

The web interface has the option to generate archives.  For example:

    http://selenic.com/hg/archive/<rev>.<format>

Where <rev> can be any revision identifier (partial/full SHA1, local
rev, tag, bookmark, branch, etc.) and <format> is one of: tar.gz,
tar.bz2 or zip.

This functionality is controlled by the web.allow_archive in the
configuration files (see: hg help hgrc).

Regards.

-- 
Isaac Jurado

"The noblest pleasure is the joy of understanding."
                                  Leonardo da Vinci



More information about the Mercurial mailing list