Tortoise SVN:比较两个目录(而不是文件或修订版本)
您可以使用 Tortoise SVN 比较两个修订版或文件。还有一种方法可以比较两个目录吗?
我有两个包含源代码的目录。 90% 的代码是相同的。现在我将在插件中存储相同的代码,因为重复的代码很糟糕。如果有一种方法可以比较两个目录,Tortoise Diff 将是完美的选择。
我怎样才能实现这个目标? 如果乌龟无法实现这一点,您是否有其他想法/工具用于此目的?
You can compare two revisions or files with Tortoise SVN. Is there also a way to compare two directories?
I have two directories containing source code. 90 percent of the code is identical. Now I'm going to store identical code in a plugin since duplicate code is bad. Tortoise Diff would be perfect for this if there was a way to compare two directories.
How can I achieve this?
If it isn't possible with Tortoise, do you have other ideas / tools in mind for this purpose?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
treecomp,虽然只是为了赢:(但它是免费的
treecomp, for win only though :( but it's free
不确定 Tortoise,但如果您运行的是 Windows,我推荐 WinMerge。
http://winmerge.org/
Not sure about Tortoise, but if you're running Windows I recommend WinMerge.
http://winmerge.org/
右键单击要比较的“文件夹”
选择“标记进行比较”
右键单击要比较的其他文件夹
选择“比较网址”
它将列出所有更改
您可以选择它们并将它们复制到本地或复制到另一个 svn 文件夹。
希望这有帮助..
Right click the "Folder" which you want to compare
Select "Mark for Comparison"
Right click the other folder which you want to compare
Select "Compare URLs"
it will list out all the changes
You can select them and copy them to local or copy them to another svn folder.
Hope this helps..
Beyond Compare是一款优秀的diff工具,支持目录比较。
Beyond Compare is an excellent diff tool which supports directory comparison.
为此,您可以使用 Araxis Merge 或 WinMerge。它们应该允许您设置过滤器,以便您可以在比较过程中忽略 .svn 文件夹。
You can use Araxis Merge or WinMerge for this. They should allow you to set filters so that you can ignore .svn folder during comparison.