如何在不访问hg的情况下提取BitBucket存储库 [英] How to pull a BitBucket repository without access to hg

查看:69
本文介绍了如何在不访问hg的情况下提取BitBucket存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有可能在不访问hg的情况下将私有的软件仓库拉到服务器.我具有SSH访问权限,但没有安装HG的能力.我当时在想某种使用http访问或其他功能的Python脚本,但我不确定.我还认为,只有使用公共回购协议才有可能做到这一点.我目前在BitBucket上托管项目.感谢您的输入!

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!

推荐答案

如果您没有安装Mercury并且无法安装它,那么该存储库会有什么好处?

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 https://username:password@bitbucket.org/user/repo/get/REVISIONHASH.zip

我很确定您可以通过标准HTTP方式将用户/密码放入URL.

I'm pretty sure you can put user/pass in the URL in the standard HTTP way.

这篇关于如何在不访问hg的情况下提取BitBucket存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆