Windows 上的 Subversion 复制挂钩
我在空闲时间正在开发一个基于网络的项目。我在我的机器上设置了 SVN(运行 XP)。我想做的是通过钩子将我的存储库的副本复制到提交后的 htdocs 文件夹(开发机器)。这样我就可以在浏览器中测试我的更改。
我知道我可以编写一个 .bat 文件,但我不确定语法是什么。我可以执行基本的 DOS 复制命令,但我看到一个在复制时向 SVN 提供用户名和密码的示例。我需要这样做吗?
有人可以为我指出 .bat 文件语法的正确方向吗?
或者甚至可以提出更好的方法。
谢谢
I am working on a web based project in my free time. I have SVN set up on my machine (running XP). What I would like to do is have a copy of my repository copied to the htdocs folder (Dev machine) post-commit via a hook. That way I can test my changes in a browser.
I know that I can write up a .bat file, but I'm not sure what the syntax would be. I can do a basic DOS Copy command, but I saw one example that provided a username and password to SVN at copy time. Do I need to do this?
Can someone point me in the right direction as far a syntax for the .bat file?
Or maybe even suggest a better method.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
红豆书< /a> 有一个关于钩子的部分。 提交后参数是描述也。
话虽如此;如果没有必要,我不会将您的测试环境与源代码控制如此紧密地结合在一起。
您可以编写一个完全独立的作业,轮询您感兴趣的颠覆位置,并在检测到更改时进行导出。
The red-bean book has a section on hooks. The post-commit parameters are described also.
That all being said; I wouldn't couple your testing environment so tightly with your source control if you didn't have to.
You could write a completely standalone job that polls the subversion location you're interested in and does the export when it detects a change.