Merging for Mercurial error -9866

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jffmarker
    Visitor
    • Apr 2013
    • 9

    Merging for Mercurial error -9866

    I'm not sure yet if this error code is emitted from BC or Mercurial (HG), but doing a 3-way merge shows this in the terminal. The merge, however, succeeds (e.g. BC shows the conflicts, and my resolution is written to disk).

    Code:
    ➜  repo1  hg merge
    merging file.txt
     Error:   failed with result -9866
     Error:   failed with result -9866
    0 files updated, 1 files merged, 0 files removed, 0 files unresolved
    (branch merge, don't forget to commit)
    My .hgrc is like the following:

    Code:
    [ui]
    username = ...
    editor = emacs
    style = ...
    merge = bdiff
    
    [http_proxy]
    host = ...
    
    [extensions]
    mq =
    purge =
    graphlog =
    extdiff =
    
    [extdiff]
    cmd.bdiff = /Applications/Beyond Compare.app/Contents/MacOS/BCompare
    opts.bdiff = -ro
    
    [merge-tools]
    bdiff.executable = /Applications/Beyond Compare.app/Contents/MacOS/BCompare
    bdiff.args = $local $other $base $output
    bdiff.priority = 1
    bdiff.premerge = True
    bdiff.gui = True
    Example repos are attached (they just have a single text file with conflicts).

    For example, in repo1, <hg pull -u ../repo2>, <hg merge>, pick one side or the other, and hit Cmd+S to save. The errors are printed at this point.
  • Aaron
    Team Scooter
    • Oct 2007
    • 16026

    #2
    Hello,

    I am not sure if Mercurial supports calling Beyond Compare.app directly, but does this work if you use the Command Line tools instead? Launch Beyond Compare, then use the Beyond Compare menu -> Install Command Line Tools. This will install a shortcut you can refer to as bcomp, similar to our setups found in our vcs article:
    http://www.scootersoftware.com/support.php?zz=kb_vcs
    Aaron P Scooter Software

    Comment

    • jffmarker
      Visitor
      • Apr 2013
      • 9

      #3
      Good point; the CLI bcomp does not exhibit the error messages. Thanks.

      Comment

      Working...