【问题标题】:SVN Diff of two files with different extension两个具有不同扩展名的文件的SVN差异
【发布时间】:2015-12-14 13:48:47
【问题描述】:

我正在使用与 NetBeans 8.1 集成的 SVN。

我在JSP中翻译一堆HTML文件,所以前者和后者很相似。

我想将我刚刚创建的 JSP 与存储库中对应的 HTML 进行比较。

这可能吗?因为 SVN 不会在 diff 视图中显示 HTML,所以说:

内容不可用。

【问题讨论】:

    标签: svn netbeans version-control diff netbeans-8.1


    【解决方案1】:

    是的,有可能。只需运行svn diff --old <URL> --new <URL>。我不确定 NetBeans 是否内置了这种功能。

    确保您使用 Subversion 1.8 或更新的客户端并阅读svn diff 上的文档。

    TortoiseSVN 客户端相关选项,请查看its manual's Viewing Differences section

    【讨论】:

    • 可以使用 TortoiseSVN GUI 吗?该命令通过提示工作,但没有突出显示是不可能理解的。
    • 签出工作副本,按住 Shift,右键单击文件,然后选择 TortoiseSVN |与 URL 不同。也可以尝试其他选项。
    • If you want to see the differences between two different files, you can do that directly in explorer by selecting both files (using the usual Ctrl-modifier). Then from the explorer context menu select TortoiseSVN → Diff. 这正是我想要的。感谢您提醒我手册的重要性。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-11-13
    • 1970-01-01
    • 2023-03-07
    • 1970-01-01
    • 1970-01-01
    • 2015-06-29
    • 1970-01-01
    相关资源
    最近更新 更多