本文介绍了如何将点子指向Mercurial分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过pip将我的应用程序安装到virtualenv进行测试.

I'm trying to install my application via pip to a virtualenv for testing.

可以很好地安装defaulttip,如下所示:

Works fine for installing the default or tip like so:

pip install -e hg+https://[email protected]/username/app_name#egg=app_name

但是有什么方法可以指向分支,而不仅仅是获取技巧.不知道这将是水银,比特桶还是点子.

But is there any way to point to a branch, rather than just getting the tip. Not sure if this would be a mercurial thing, bitbucket, or pip.

Bitbucket允许下载代码的标记版本,但是我只能在登录浏览器后才能工作.我尝试像这样从tag tar.gz安装:

Bitbucket allows for downloading of a tagged version of the code, but I can only get it to work while logged into the browser. I tried installing from a tag tar.gz like so:

pip install https://[email protected]/username/app_name/get/bbc4286a75db.tar.gz

但是即使输入密码后,它也会返回401未经授权(它是私人存储库)

but even after entering my password it returns a 401 Unauthorized (Its a Private Repo)

推荐答案

VCS支持:

支持的方案是:hg + http,hg + https,hg + static-http和 hg + ssh:

The supported schemes are: hg+http, hg+https, hg+static-http and hg+ssh:

-e hg+http://hg.myproject.org/MyProject/#egg=MyProject
-e hg+https://hg.myproject.org/MyProject/#egg=MyProject
-e hg+ssh://[email protected]/MyProject/#egg=MyProject

您还可以指定修订号,修订哈希,标签名称或 本地分支名称:

You can also specify a revision number, a revision hash, a tag name or a local branch name:

-e hg+http://hg.myproject.org/MyProject/@da39a3ee5e6b#egg=MyProject
-e hg+http://hg.myproject.org/MyProject/@2019#egg=MyProject
-e hg+http://hg.myproject.org/MyProject/@v1.0#egg=MyProject
-e hg+http://hg.myproject.org/MyProject/@special_feature#egg=MyProject

在命令行中指定仓库时的语法是相同的

The syntax is the same when specifying repo at the command line

pip install -e hg+http://hg.myproject.org/MyProject/@special_feature#egg=MyProject

,并且在不使用-e选项从版本0.8.2.开始时有效.

and it works when not using -e option starting from version 0.8.2.

这篇关于如何将点子指向Mercurial分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 20:03