I was wondering if it was possible to pull a private mercurial repo to a server without access to hg. I have SSH access, but do not have the ability to install HG. I was thinking some kind of Python script that used http access or something, but I wasn't sure. I was also thinking this might only be possible with public repos. I am currently hosting the projet on BitBucket. Thanks for any input!
+1
A:
If you don't have mercurial available locally then you may as well pull the tarball instead, available behind the "get source" option towards the top-right corner of various pages, underneath "Forks/Queues".
Ignacio Vazquez-Abrams
2010-06-21 04:33:31
The problem with that was since it is a private repo, it won't let me download it via wget. I'd have to upload the tarball on the server via FTP anyway which is what I'd like to avoid.
Shane Reustle
2010-06-21 04:36:13
+4
A:
What good would getting the repository be if you don't have mercurial installed and can't install it?
Do you instead mean get the files in a specific revision? If so you can easily do that using:
wget http://username:[email protected]/username/reponame/get/REVISIONHASH.zip
I'm pretty sure you can put user/pass in the URL in the standard HTTP way.
Ry4an
2010-06-21 04:37:06
Yeah, I've just confirmed that user/pass in the URL works fine for private repos on bitbucket.
Ry4an
2010-06-21 04:40:00