有没有办法自动将 svn 配置设置从服务器推送到客户端?
有没有办法强制客户端使用钩子更新其本地 svn 配置?
我有 lin 和 win 客户,我想推出一套标准的忽略和自动道具。今天,我提供了一个配置文件并要求用户安装它们(win 为.reg 文件,linux 为conf 文件)。我想自动将它们刷新给客户。
有办法做到这一点吗? (我想不是,但我不得不问,因为这样会更好)
Is there a way to force the client to update its local svn configuration using a hook?
I have lin and win clients and I'd like to push down a standard set of ignores and auto props. Today, I provide a config files and ask the users to install them (.reg file for win and conf file for linux). I'd like to flush them down to the clients automagically.
Is there a way to do this? (I think not, but I had to ask because it would be nicer)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为你想要的不可能。不过,请查看此脚本是否有帮助。
I don't think what you want is possible. However, see whether this script helps.
Subversion 中没有内置解决方案。但是,您可以编写预提交脚本来检查文件的属性。
mr-ats.tigris 上的一个名为 mr-ats 的项目中已经有这样一个脚本.org
http://guest:@mr-ats.tigris.org/svn/mr-ats/trunk/src/hooks/property-check/
但是我还没有使用它。
there is no build-in solution in subversion. However, you can write a pre-commithook script to examine the properties of your files.
There is already such a script in a project called mr-ats on mr-ats.tigris.org
http://guest:@mr-ats.tigris.org/svn/mr-ats/trunk/src/hooks/property-check/
However I did't used it yet.
您可以通过组策略将注册表设置推送到登录域的 Windows 用户。您还可以在“所有用户”位置(例如 /etc、/usr/local/etc 或 C:\Documents and Settings\All Users\Application Data\Tigris\Subversion)设置配置文件。
You can push registry settings to Windows users logged on a Domain via Group Policy. You can also set a config file in the 'all users' location (E.g. /etc, /usr/local/etc or C:\Documents and Settings\All Users\Application Data\Tigris\Subversion).