Subversion 预提交挂钩可从 WebDAV 自动版本控制客户端清除 XML

发布于 2024-09-03 05:22:57 字数 332 浏览 4 评论 0原文

我知道在 Subversion 中从预提交挂钩修改提交通常并不安全,因为 SVN 客户端不会看到已提交的版本,并且会缓存错误的内容,但我想清理代码来自版本控制幼稚的 WebDAV 客户端,不会保留本地缓存副本。这个想法是,当我使用 SVN 客户端查看存储库时,差异是干净的。

顺便说一句,客户端是 MS Word,使用 2003 XML 格式文件。我们已经在 WebDAV 系统中使用这种格式,但我们希望为专家用户添加版本控制功能。

在我到处寻找有关如何修改预提交挂钩中的代码的文档时,我得到的答案是“不要这样做”,而不是答案“这是如何执行此操作,但建议您不要这样做”,所以我什至无法轻易尝试看看它是否会给我带来问题。

I know that it isn't normally safe to modify a commit from a pre-commit hook in Subversion because SVN clients will not see the version that has been committed, and will cache the wrong thing, but I'd like to clean the code from a versioning-naïve WebDAV client that won't keep a local cached copy. The idea is that when I look at the repository with an SVN client, the diffs are clean.

The client, by the way is MS Word, using 2003 XML format files. We're already using this format in a WebDAV system, but we'd like to add a versioning capability for expert users.

Everywhere I look for documentation on how to modify the code in a pre-commit hook, I get the answer "Don't do this", not the answer "Here's how to do this, but it's reccomeded you don't", so I can't even easily try it to see if it's going to cause me problems.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魄砕の薆 2024-09-10 05:22:57

我建议您访问官方网站,查看那里的描述并向专家提问。很可能会提示到达。

http://www.webdavsystem.com/ajaxfilebrowser/

I would recommend to come on an official site, to look that there describe and to ask a question to experts. Quite probably that will prompt as to arrive.

http://www.webdavsystem.com/ajaxfilebrowser/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文