将文件目录与 svn 修订版本进行比较
如果我有一个不受源代码控制的文件目录(带有子目录)(没有 .svn 目录),有什么方法可以将它与 svn 中的修订版进行比较(即“svn diff”)?
类似的问题:如果我有一个受源代码控制的文件目录,我可以对与检出它的 URL 不同的 URL 进行比较吗?
If I have a directory of files (with subdirectories) that is not under source control (no .svn directories), is there any way to compare it with a revision in svn (i.e. "svn diff")?
Similar question: if I have a directory of files that is under source control, can I do a diff to a different URL than the one it was checked out from?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最简单的方法是将相关修订版导出到原始版本旁边的目录中。然后使用普通的旧
diff -r
(非 svn 变体)。另一种选择是
svn add
您的原始版本,然后使用svn diff
的两个 URL 版本。但这可能有点矫枉过正了。The easiest thing to do is to export the revision in question to a directory next to your originals. Then use plain old
diff -r
(the non-svn variety).Another option is to
svn add
your originals, then use the two-URL version ofsvn diff
. But that's probably overkill.对于此类事情,我是 WinMerge 的忠实粉丝。
I'm a big fan of WinMerge for this sort of thing.