【问题标题】:mercurial kdiff3 mac is not openingmercurial kdiff3 mac 没有打开
【发布时间】:2013-01-26 13:07:34
【问题描述】:

我在我的新 Mac 上使用 Eclipse 和 mercurial 当我尝试合并时,它会给我一条消息
“1 个文件未解析”和 kdiff3 它没有打开, kdiff3 是默认的合并工具吗? 如果不是,我该如何配置?

【问题讨论】:

    标签: macos mercurial merge kdiff3


    【解决方案1】:

    我不确定 Eclipse 是否会介入,但对于 Mercurial 本身而言,默认的合并工具是其内部合并。对于 kdiff3,这似乎对我有用:

    .hgrc

    [ui]
    merge = macfilemerge
    
    [extensions]
    extdiff =
    
    [extdiff]
    cmd.difftool = diff-w
    
    [merge-tools]
    macfilemerge.executable = diff-w
    macfilemerge.args = $base $local $other -o $output
    

    diff-w

    # Piping the output makes the script to wait for diff tool's output
    /Applications/kdiff3.app/Contents/MacOS/kdiff3 "$@" | cat
    

    记得 chmod +x 你的 diff-w 并把它放在你常用路径的某个地方。

    其他合并工具

    文件合并

    .hgrc

    [merge-tools]
    macfilemerge.args = $local $other -ancestor $base -merge $output
    

    diff-w

    opendiff "$@" | cat
    

    P4Merge

    .hgrc

    [merge-tools]
    macfilemerge.args = $base $local $other $output
    

    diff-w

    /Applications/p4merge.app/Contents/MacOS/p4merge "$@" | cat
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-08
      • 1970-01-01
      • 2014-09-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-05
      • 1970-01-01
      相关资源
      最近更新 更多