Mercurial-如何禁用推送 [英] Mercurial - How to disable push

查看:90
本文介绍了Mercurial-如何禁用推送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到是否有一种简单的方法可以将Merurial存储库设置为只读.用户应该能够克隆,但不应允许任何推送.我需要对超过100个的所有存储库执行此操作.

I am trying to find if there is an easy way to make a mercurial repository read-only. The user should be able to clone, but no pushes should be allowed. I need to do this for all my repositories which is more than 100.

推荐答案

您可以在.hg/hgrc中这样做:

You can do this like this in .hg/hgrc:

[hooks]
prechangegroup = false

这篇关于Mercurial-如何禁用推送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆