svn 先前和新工作副本之间的差异
假设自上次更新(恢复)我的 ab 文件以来我已经做了一些更改。 此 ab 文件在存储库中也发生了更改。 现在我想将我所做的更改与存储库更改进行比较。
如果我 svn 恢复文件,我可以看到新下载和以前下载之间的更改(以前的下载没有我的更改)。如何查看存储库更改和我的更改之间的差异?
谢谢
suppose that I have made some changes since last update (revert) to my a.b file.
this a.b file is also changed in the repository.
Now I want to compare the changes I made with the repos changes.
If I svn revert the file, I can see the changes between new and previous download (previous download doesn't have my changes). How can I see differences between the repository changes and mine?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为如果存储库中发生某些更改,您必须指定 HEAD 修订版。
但现在我重新阅读你的问题,看起来像你:
做了改变
提交变更
现在想要查看这些更改
在这种情况下,您可以使用以下命令获取当前的修订号
从中减去 1,并在 svn diff 中使用它。
例如,如果您当前的修订版本是 100
I think you have to specify the HEAD revision if something changes in the repository.
But now that I re-read your question, it looks like you:
made a change
committed the change
now want to view those changes
In that case, you can get your current revision number with
subtract 1 from it, and use it in the svn diff.
for example, if your current revision is 100
如果您在 Eclipse 中使用 Subclipse,它会将文件标记为冲突,当您双击冲突文件时,它将在一侧显示您的本地文件,在右侧显示存储库文件。
冲突被标记为红色,您可以轻松地假定更改或标记为合并。
欲了解更多信息:http://subclipse.tigris.org/
If you are using Subclipse in Eclipse it will mark the file as conflict and when you double click on the conflicting file, it will show you on the one side your local file and on the right side the repositiry file.
The conflicts are marked red, and you can easily assume the changes or mark as merged.
For more information : http://subclipse.tigris.org/