I have a workflow where I need to allow users to be able to pull new changes from the Apache hosted mercurial repository but prevent them from doing a fresh clone.

Any ideas on how this can be done?

Thanks

  • Using hgweb.wsgi to serve the repository using an apache vhost (workarounds accepted)
有帮助吗?

解决方案 2

The easiest way would be to just publish bundles via regular HTTP and allow users to download and apply those. See 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.

其他提示

A clone is just an init followed by a pull, so you can't stop cloning w/o also breaking pull.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top