帮助我了解 WebDAV 和自动版本控制

发布于 2024-09-01 01:53:15 字数 472 浏览 8 评论 0原文

我刚刚阅读了 O'Reilly Subversion 书中的 WebDAV 附录。我不太明白。它谈到用户能够像平常一样“挂载”WebDAV 目录(树)并操作文件,并且在保存时服务器会自动创建新版本。

从它解释的方式来看,听起来它适用于任何程序,但在附录的末尾,它列出了一系列与 WebDAV 服务器一起使用的程序,这让我认为它可能不像它最初描述了它。

我的问题是:您究竟如何与 WebDAV 存储库交互?

例如,我可以这样做吗:通过 ftp 在本地复制一个文件,用 notepad++ 编辑它,然后通过 ftp 将其上传到服务器,让服务器进行提交并使用我刚刚编辑和上传的文件创建新修订版。

另外,如果可能的话,如果两个人在本地(在他们的计算机上)编辑文件并将两个版本上传到服务器,会发生什么?

借助 webDAV,我是否能够用简单的 ftp 上传和颠覆冲突解决方案来取代 Dreamweaver 的“哎呀,有人在你之前编辑过这个”?

I just read the WebDAV Appendex in the O'Reilly Subversion book. I don't quite understand it. It talked about users being able to "mount" WebDAV directories (trees) and manipulate the files like they would normally and on saves the server would automagically create a new revision.

The way it explained it, it sounded like it would work for any program, but then at the end of the appendix, it listed a series of programs that worked with WebDAV servers, which leads me to think that maybe it doesn't work like it originally described it.

My question is this: How exactly do you interact with a WebDAV repository?

Can I do this for example: Copy a file locally via ftp, edit it with notepad++, and then upload it via ftp to the server and have the server do a commit and create a new revision with the file I just edited and uploaded.

Also, if that is possible, what happens if two people edit the file locally (on their machines) and uploaded two reversions to the server?

With webDAV will I be able to replace Dreamweaver's "Oops, someone edited this before you" with simple ftp uploads and subversion conflict resolutions?

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

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

发布评论

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

评论(3

中性美 2024-09-08 01:53:15

要写入 WebDAV 存储库,您需要 WebDAV 客户端或包含 WebDAV 功能的程序。客户端的示例是 Windows 和 MacOS 中的 WebDAV 文件系统驱动程序。 MS Office 是直接支持 WebDAV 的程序的一个示例(您可以使用 http URL 打开文档并就地编辑它)。

不,您不会使用 FTP。 WebDAV 是 HTTP。因此,您可以从命令行使用 CURL 发送 PUT 请求。

To write to a WebDAV repository, you need either a WebDAV client, or a program that includes WebDAV functionality. Examples of clients are the WebDAV filesystem drivers in Windows and MacOS. An example of a program that has direct WebDAV support is MS Office (you can open a document with a http URL and edit it in place).

And no, you wouldn't use FTP. WebDAV is HTTP. So from the command line, you could use CURL to send a PUT request.

維他命╮ 2024-09-08 01:53:15

我建议转至官方网站并熟悉文档。服务器-客户端的交互被描述

http://www.webdavsystem.com/client

I recommend to transit for an official site and to familiarize with the documentation. There interaction the server - the client is described

http://www.webdavsystem.com/client

拥醉 2024-09-08 01:53:15

这个 slideshare 演示文稿将有助于理解基本概念和如何做?

如果您想了解详细知识,请访问

This slideshare presentation would help a lot to understand the basic concepts and HOW TO DO?

If you want to have detailed knowledge, visit this .

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