使用 Subversion svn 检查文件是否已更改
我在Windows下的cmd中使用Subversion svn。 如何查看哪些文件较之前的版本发生了更改?我尝试了
svn.exe info --changelist xx # xx is a revision number
但是没有输出。 我想我需要将 url 添加到主干 + 我需要告诉 svn.exe 我想要将更改列表从计算机上的当前版本(例如 74)更改为最新版本(例如 75)。 我怎样才能做到这一点?谢谢!
I'm using Subversion svn under windows in cmd.
How can I check which files have been changed from the revision before? I tried
svn.exe info --changelist xx # xx is a revision number
But there is no output.
I guess I need to add the url to the trunk + I need to tell svn.exe that I want the changelist from the current revision I have on my computer (e.g. 74) to the newest (e.g. 75).
How can I do that? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要 svn status 命令。
另外,如果您使用的是 Windows,我衷心推荐 TortoiseSVN。
You want the svn status command.
Also, if you're using Windows I heartily recommend TortoiseSVN.
在我看来,您只需要
svn status
,它将为您提供存储库中所有当前更改的列表。您还可以使用 svn diff,它将显示所有当前更改的详细差异。如果您想在两个不同的更改列表之间进行比较,svn diff
还可以以各种不同的方式向您显示此信息。请参阅svn help diff
或 在线文档了解更多信息。It sounds to me like you just want
svn status
, which will give you a list of all of the current changes in your repository. You can also usesvn diff
, which will show you a detailed diff of all of the current changes. If you want to diff between two different changelists,svn diff
also can show you this information in a variety of different ways. Seesvn help diff
or the online documentation for more information.