【发布时间】:2013-03-11 09:57:32
【问题描述】:
我有一个工作流程,我需要允许用户从 Apache 托管的 mercurial 存储库中提取新更改,但阻止他们进行新的克隆。
关于如何做到这一点的任何想法?
谢谢
- 使用 hgweb.wsgi 通过 apache vhost 为存储库提供服务(已接受解决方法)
【问题讨论】:
我有一个工作流程,我需要允许用户从 Apache 托管的 mercurial 存储库中提取新更改,但阻止他们进行新的克隆。
关于如何做到这一点的任何想法?
谢谢
【问题讨论】:
clone 只是一个 init 后跟一个 pull,所以你不能停止克隆而没有破坏 pull。
【讨论】:
最简单的方法是通过常规 HTTP 发布捆绑包,并允许用户下载和应用这些捆绑包。见hg help bundle:
Generate a compressed changegroup file collecting changesets not known to
be in another repository.
The bundle file can then be transferred using conventional means and
applied to another repository with the unbundle or pull command. This is
useful when direct push and pull are not available or when exporting an
entire repository is undesirable.
Applying bundles preserves all changeset contents including permissions,
copy/rename information, and revision history.
【讨论】: