Subversion 快速解决所有冲突

发布于 2024-07-26 04:30:41 字数 66 浏览 8 评论 0原文

当我遇到多个冲突时,有没有办法通过告诉 SVN 保留存储库中的版本来解决所有冲突? 不幸的是,我们仍在使用 1.4。

When I have several conflicts, is there a way to resolve them all by just telling SVN to keep the version that is in the repository? Unfortunately, we're still using 1.4.

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

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

发布评论

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

评论(3

看轻我的陪伴 2024-08-02 04:30:41

我相信如果您运行命令 svn revert 。 -R,您基本上撤消对工作副本的所有更改。 如果存在冲突的文件,SVN 会放弃您的更改并使用您最近更新的版本。

当然,这也消除了对不冲突的文件的更改。

I believe if you run the command svn revert . -R, you basically undo all changes to your working copy. If there are conflicted files, SVN tosses out your changes and uses the revision you've most recently updated to.

Of course, this also gets rid of changes to files that aren't conflicted.

丑疤怪 2024-08-02 04:30:41

svn 更新。 --accept theirs-full

或者在 svn 1.4 中不可用?

您可以尝试在 1.4 服务器上运行 1.5 客户端,可能会起作用。

svn update . --accept theirs-full

Or is that not available in svn 1.4?

You could try and run the 1.5 client against a 1.4 server, might work.

囍笑 2024-08-02 04:30:41

您可以尝试

svn st | awk '/^C/ { print $2 }' | xargs svn revert

恢复所有有冲突的文件

You can try

svn st | awk '/^C/ { print $2 }' | xargs svn revert

this revert all files with conflicts

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