允许拉入存储库,但对Apache服务的存储库进行块克隆



我有一个工作流,我需要允许用户能够从Apache托管的mercurial存储库中提取新的更改,但防止他们进行新的克隆。

有什么好主意吗?

感谢
    使用hgweb
  • 。wsgi使用apache vhost为存储库提供服务(接受变通方法)

一个clone只是一个init后面跟着一个pull,所以你不能停止克隆w/o也打破拉

最简单的方法是通过常规HTTP发布bundle,并允许用户下载和应用这些bundle。参见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.

相关内容

  • 没有找到相关文章

最新更新