我有一個工作流,我需要允許用戶能夠從Apache託管的mercurial存儲庫中提取新更改,但阻止他們進行新的克隆。允許拉入存儲庫但爲Apache服務的存儲庫阻止克隆
關於如何做到這一點的任何想法?
感謝
- 使用hgweb.wsgi使用Apache虛擬主機服務存儲庫(解決方法接受)
我有一個工作流,我需要允許用戶能夠從Apache託管的mercurial存儲庫中提取新更改,但阻止他們進行新的克隆。允許拉入存儲庫但爲Apache服務的存儲庫阻止克隆
關於如何做到這一點的任何想法?
感謝
最簡單的方法是隻發佈通過普通的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.
一個clone
只是一個init
後跟一個pull
,所以你不能阻止克隆W/O也打破拉動。
這不會允許用戶通過創建新的回購和應用所有捆綁包來有效克隆嗎? – 2013-03-11 20:25:32
接受這個答案作爲歷史包可以刪除,只有最新的包可用 – eskhool 2013-03-12 10:45:55