2013-03-11 70 views

回答

1

最簡單的方法是隻發佈通過普通的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. 
+0

這不會允許用戶通過創建新的回購和應用所有捆綁包來有效克隆嗎? – 2013-03-11 20:25:32

+0

接受這個答案作爲歷史包可以刪除,只有最新的包可用 – eskhool 2013-03-12 10:45:55

2

一個clone只是一個init後跟一個pull,所以你不能阻止克隆W/O也打破拉動。

+0

謝謝,這似乎是真實的...但是,下面的答案更接近解決方案 – eskhool 2013-03-12 10:46:41

+0

絕對。你應該編輯你的問題,使其足夠廣泛,包括作爲一個真正的答案。正如寫入.bundle文件不再是一個「hgweb.wsgi」託管的存儲庫。 – 2013-03-12 14:12:03

+0

更新問題以允許明確解決方法,儘管總是歡迎任何解決方法。如果你已經提出了你的答案,作爲給予信貸,但與你的專家分數的方式,我懷疑現在對你很重要:)乾杯 – eskhool 2013-03-14 06:20:08