Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I get a tip snapshot of a mercurial repository, without doing a complete clone?

Say I have a repository on another machine whose entire history is to big to clone locally. If I have no intention of submitting any changes back to that repository, there's no reason that I shouldn't be able to just take a snapshot of the tip. Is there a way to do this, or am I going to find myself working around this with an rsync hack or something similar?

If it helps, in my case, the remote repository is provided by mercurial-server through an ssh tunnel.

like image 229
Sniggerfardimungus Avatar asked Sep 21 '10 23:09

Sniggerfardimungus


1 Answers

The standard CGI script for Mercurial lets you download zip and tarballs for any revision. See the web.allow_archive setting. You can also see this with hg serve, which runs the same code as the CGI script underneath.

like image 152
Martin Geisler Avatar answered Sep 23 '22 14:09

Martin Geisler