SVN显示工作目录中过期的文件
我正在尝试使用 SVN,试图更好地了解它的工作原理。我将一些文件添加到我的存储库中,并将它们检出到 2 个单独的工作目录中。对于工作目录 1,我使用 SQL 客户端软件(Aqua Data Studio)来修改文件和工作目录 2,我只是使用带有 TortoiseSVN 的 Windows 资源管理器。
我的问题是,SVN 或构建在其之上的客户端永远不会显示工作副本中的文件已过期吗?如果我在工作目录 1 中进行更改并提交,我希望看到工作目录 2 通知我我的工作副本在存储库中已过期。曾经有过这样的情况吗?有什么方法可以判断我的工作目录中的哪些文件已过期,或者我只需要在更改文件之前始终小心更新?
I am playing around with SVN trying to get a better feel for how it works. I added some files to my repository and checked them out into 2 separate working directories. For working directory 1 I am using my SQL client software (Aqua Data Studio) to modify the file and working directory 2 I am just using Windows Explorer with TortoiseSVN.
My question is, does SVN or the clients built on top of it, never show when a file in your working copy is out of date? If I make a change in working directory 1 and commit I would expect to see working directory 2 notify me that my working copy is out of date with the repository. Is this ever the case? Is there any way to tell which files in my working directories are out of date or do I just need to be careful to always update prior to making a change to a file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试
svn status --show-updates
[编辑] 我一开始没有注意到您使用的是 Windows,但此命令应该适用于运行 OSX 或 Linux 的其他人
Try
svn status --show-updates
[EDIT] I didn't notice at first that you were using Windows, but this command should work for others running OSX or Linux
使用 TortoiseSVN,使用“检查修改”命令,然后点击“检查存储库”按钮。
With TortoiseSVN, use the "Check for Modifications" command, then hit the "Check Repository" button.
不,您不会在本地工作文件夹中看到存储库是否包含较新的版本。
SVN 将在提交更改之前检查服务器版本是否较新。经常更新和提交是一个很好的做法。
当您使用 Windows 时,您可能想尝试 CommitMonitor,这是一个由TortoiseSVN 的作者,通知您有关 SVN 存储库的提交。
No, You will not see in your local working folder whether the repository contains a newer version.
SVN will check prior to committing your changes whether the server version is newer. It is good practice to update and commit frequently.
As you are on Windows you might want to try CommitMonitor, a tool written by the author of TortoiseSVN that notifies you about commits to SVN repositories.