从SVN获取信息
背景:
SVN服务器安装在linux服务器上。使用 subclipse 从 Windows XP 签入文件。我没有 SVN 的管理员访问权限。 每次签入文件时,SVN 都会生成修订号。
问题:
如何在一个版本号和另一个版本号之间检查文件?
例如,我想从 Windows XP 中获取从版本 1(我知道修订号)到最后签入版本的所有文件。
Background:
SVN server installed in linux server. Using subclipse to check in files from Windows XP. I don't have admin access for SVN.
Every time I check in a file SVN will generate the revision number.
Question:
How to get the files checked between one revision number and another?
For example, I'd like to fetch all files from build 1 (I know the revision number) to the last checked in version from Windows XP.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
试试这个,它应该给你两个版本之间的差异,根据需要输入你自己的参数。
svn diff -r ${startingSvnRevision}:${endingSvnRevision} --summarize ${RepoURL}
Try this one, it should give you the difference between two revisions, put in your own params as needed.
svn diff -r ${startingSvnRevision}:${endingSvnRevision} --summarize ${RepoURL}
很难知道问题是什么,所以可能有很多方法来回答。
在 SVN 存储库浏览视图中,右键单击路径并选择比较。然后输入您想要的两个修订,您将看到更改的摘要列表。然后,您可以双击任何文件以查看差异的图形比较。
“显示历史记录”选项将显示所选路径上的所有更改,这也可能是您想要的。
最后,您可能还需要类似 Team > 的内容。与存储库同步,这将显示从存储库到工作副本的所有传入更改,并让您看到差异等。
It is hard to know what the question is, so there could be a lot of ways to answer it.
In the SVN Repository Browsing view, right-click on the path and choose Compare. Then enter the two Revisions you want and you will see a summarized list of the changes. You can then double-click on any file to see a graphical compare of the differences.
The Show History option will show all the changes on a selected path, which might also be what you want.
Finally, you might also want something like Team > Synchronize with Repository which will show all the incoming changes from the repository to your working copy and let you see differences etc.