#11120: Autodetect installed 3-way merge programs (invalidates #4434)
------------------------+---------------------------------------------------
   Reporter:  kini      |       Owner:  tbd            
       Type:  defect    |      Status:  needs_review   
   Priority:  major     |   Milestone:  sage-4.7       
  Component:  packages  |    Keywords:  mercurial, os x
     Author:            |    Upstream:  N/A            
   Reviewer:            |      Merged:                 
Work_issues:            |  
------------------------+---------------------------------------------------
Changes (by kini):

  * status:  needs_work => needs_review


Old description:

> Depends on #11121 ; Apply trac_11120-re-fix-trac_4434.mercurial-
> spkg.patch to mercurial spkg base repository
> ----
> In Mercurial versions earlier than 1.0, a script called `hgmerge` was
> installed to the system when you installed mercurial. This script called
> whatever 3-way merge programs you had installed in order to manually
> intervene in Mercurial's merging process when it couldn't figure out how
> to resolve a conflict.
>
> This was deprecated in version 1.0, and now Mercurial calls 3-way merge
> programs directly instead of relying on an `hgmerge` script. In order to
> make this work properly, one should set the proper configuration
> variables to help Mercurial find any installed 3-way merge programs.
>
> There is a file, `contrib/mergetools.rc`, in the Mercurial source
> distribution which provides exactly these configuration variables, though
> the upstream installer script does not actually install it anywhere.
>
> The problem reported at trac #4434 was caused, I guess, by the fact that
> `hgmerge` was deprecated and we sage people didn't notice, so the patch
> there simply caused our distribution of Mercurial to continue using
> `hgmerge`. The patch also did this only on the OS X platform, though as
> far as I can tell the same fundamental problem actually appears on Linux
> as well (see comments below).
>
> A better way to fix the problem on trac #4434, and fix it for Linux too,
> would be to use the `contrib/mergetools.rc` file as it was designed to be
> used.

New description:

 Depends on #11121 ; Apply trac_11120-re-fix-trac_4434.mercurial-spkg.patch
 to mercurial spkg base repository

 Or, just use
 [http://sage.math.washington.edu/home/keshav/files/mercurial-1.6.4.p1.spkg
 this SPKG] which fixes both #11120 and #11121.
 ----
 In Mercurial versions earlier than 1.0, a script called `hgmerge` was
 installed to the system when you installed mercurial. This script called
 whatever 3-way merge programs you had installed in order to manually
 intervene in Mercurial's merging process when it couldn't figure out how
 to resolve a conflict.

 This was deprecated in version 1.0, and now Mercurial calls 3-way merge
 programs directly instead of relying on an `hgmerge` script. In order to
 make this work properly, one should set the proper configuration variables
 to help Mercurial find any installed 3-way merge programs.

 There is a file, `contrib/mergetools.rc`, in the Mercurial source
 distribution which provides exactly these configuration variables, though
 the upstream installer script does not actually install it anywhere.

 The problem reported at trac #4434 was caused, I guess, by the fact that
 `hgmerge` was deprecated and we sage people didn't notice, so the patch
 there simply caused our distribution of Mercurial to continue using
 `hgmerge`. The patch also did this only on the OS X platform, though as
 far as I can tell the same fundamental problem actually appears on Linux
 as well (see comments below).

 A better way to fix the problem on trac #4434, and fix it for Linux too,
 would be to use the `contrib/mergetools.rc` file as it was designed to be
 used.

--

Comment:

 Now that I've upgraded to and rebuilt alpha3 I can confirm that the spkg
 installs nicely and does what it's supposed to do after applying the
 patch. Marking as needs_review . Should I upload a new spkg file to
 sage.math.washington.edu, or does the release manager make the new spkg by
 applying a patch I upload to trac? I'll do both for now.

 Replying to [comment:2 kini]:
 > Note that this is not really an ''error'' - it's just the lack of a
 default merge program being installed. Could it be possible that the
 problem that occasioned #4474 is present on Linux as well?

 I of course meant #4434 here -- oops.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11120#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to