我有一个工作流程,我需要允许用户能够从 Apache 托管的 mercurial 存储库中提取新更改,但阻止他们进行新的克隆。
关于如何做到这一点的任何想法?
谢谢
- 使用 hgweb.wsgi 使用 apache vhost 为存储库提供服务(已接受解决方法)
Aclone
只是 ainit
后跟 a pull
,所以你不能停止克隆 w/o 也打破拉。
最简单的方法是通过常规 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.