不使用 SVN 时会发生什么?

发布于 2024-11-30 23:42:16 字数 247 浏览 2 评论 0原文

我想知道当直接更新文件而不是使用 SVN 时 SVN 会发生什么?我问的主要原因是,当服务器(linux)有两个相同但大小写不同的名称时,在我的机器(windows)上更新 SVN 时出现问题。我在服务器上解决了这个问题,但没有通过 SVN 解决,因为它不会正确更新,但我仍然遇到问题。我需要运行某种命令来更新它吗?

谢谢。

编辑:

我删除了工作目录中的冲突文件,并想知道工作目录中的处理目录是否被跟踪,或者需要做什么才能重新同步。

I am wondering what happens in SVN when a file is updated directly instead of using SVN? The main reason I am asking is that there was a problem updating the SVN on my machine (windows) when the server (linux) had 2 names that were the same, but different case. I resolved this on the server, but didn't do it through SVN since it won't update correct, but I still get the issue. Do I need to run some kind of command to update it?

Thanks.

EDIT:

I deleted the comflicting file in the working direcotry and wanted to know if doing things directory in the working directory get tracked at all or what needs to be done to resync.

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

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

发布评论

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

评论(2

北笙凉宸 2024-12-07 23:42:16

当 SVN 由于存储库比本地签出更“最新”而被阻止时,一种愚蠢的万无一失的解决方案是:

  1. 移动(或删除)在命令行中引起冲突的文件(不要使用 SVN 工具来这样做,如果你安装了 tortoise,不要使用 GUI)。
  2. svn 更新存储库,这将从 subversion 服务器恢复文件的当前副本。
  3. 决定如何处理旧文件的缓存副本。手动将它们合并回存储库,丢弃它们,或者在新的 svn 托管文件中重新进行更改(取决于您的需要)。

请注意,如果您使用 tortoise 将文件移动到目录中,请确保将其移动到不与任何 SVN 项目关联的目录中。尝试撤消乌龟所做的有用更改并不有趣,因为您认为您需要 SVN 移动来伴随文件系统移动。

When SVN gets blocked because the repository is more "up to date" than the local checkout, one brain dead foolproof solution is:

  1. Move (or remove) the files that are causing the conflict at the command line (don't use SVN tools to do this, and don't use the GUI if you have tortoise installed).
  2. svn update the repository, which will restore the current copy of the files from the subversion server.
  3. Decide what to do with your cached copies of the old files. Either manually merge them back into the repository, discard them, or remake the changes in the new svn managed files (depending on your needs).

Note that if you move the files into a directory using tortoise, make sure that you move it into a directory that's not associated with ANY SVN project. It's not fun trying to undo the helpful changes tortoise does in thinking your wanting a SVN move to accompany the file system move.

一杆小烟枪 2024-12-07 23:42:16

无需运行任何特殊命令。如果您更新了源代码,下次运行 svn update subversion 将无缝合并更改,您将获得最新的工作副本。

如果您更改了某些文件,它们将显示为已修改或冲突,具体取决于您和其他用户所做的更改。

There is no need to run any special commands. If you updated the sources, the next time you will run svn update subversion will seamlessly merge the changes and you will get an uptodate working copy.

If you changed some files, they will appear modified or conflicted depending on the changes made by you and other users.

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