简体   繁体   English

设置这些Tortoise SVN提交挂钩

[英]Setting up these Tortoise SVN commit hooks

I'd like to set up a commit hook that will subsequently upload source files from a Windows environment to a Linux server, which is not the same as Linux server running SVN. 我想设置一个提交钩子,该钩子随后会将Windows环境中的源文件上传到Linux服务器,这与运行SVN的Linux服务器不同。

I'm familiar with setting up client side hooks, but not sure what the script should be like. 我熟悉设置客户端挂钩,但是不确定脚本应该是什么样。

I'm not really sure the easiest way to go about this. 我不太确定最简单的方法。 I'm thinking a Windows script that will run a copy command that can do this sort of thing. 我在考虑一个Windows脚本,该脚本将运行可以执行此类操作的复制命令。 My entire group would use it so the script would have to be located on a Windows NFS. 我的整个小组都会使用它,因此脚本必须位于Windows NFS上。 Ideas? 有想法吗?

not sure what the script should be like 不知道脚本应该是什么样

Client-side (as server-side) hook is any program, which can be executed on this host. 客户端(作为服务器端)挂钩是可以在此主机上执行的任何程序。 Single difference between these type of hooks is location, where program is executed - clent-side hooks of TortoiseSVN will run on developer's host with Working Copy 这些钩子之间的唯一区别是执行程序的位置-TortoiseSVN的clant侧钩子将在工作主机上使用工作副本运行

Your script must be non-interactive set of operations, which will perform needed operation (ssh or ftp to target host, upload files) - can't see any problem here (except one - FTPing a bundle of /random/ files is always a big headache) 您的脚本必须是非交互式的一组操作,这些操作将执行所需的操作(通过ssh或ftp到目标主机,上传文件)-在这里看不到任何问题(一个除外)-通过FTP捆绑/ random /文件捆绑始终是头疼)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM