[ANN] python based merge scripts

Steve Borho steve at borho.org
Tue Sep 25 21:00:35 CDT 2007


On Mon, 2007-09-24 at 08:21 -0500, Steve Borho wrote:
> On Mon, 2007-09-24 at 08:44 +0200, Patrick Mézard wrote:
> > Steve Borho a écrit :
> > > Since kdiff3 has an '--auto' option, it is considered both
> > > non-interactive and interactive.  On Windows, it's likely the only
> > > non-interactive tool you'll have.
> > 
> > You may try "contrib/simplemerge" on last resort.
> 
> Yes, that will do in a pinch.  The hardest part will be finding where it
> was installed.

I did a large refactor of hgmerge.py today.  I got rid of the collection
of wrapper scripts and pulled everything into hgmerge.py proper,
implementing the detect and run wrappers as class methods.   The impetus
behind this was from trying to integrate the scripts into the py2exe
based Windows installer.  Having a dozen separate executable scripts was
too unwieldy.

While I was at it I wrote some utility functions for fixing up EOL
problems which seem to be common with many merge tools (writing merge
output in the native text format, rather than in the eol style of the
input files).  Many of the wrappers now use these functions to clean up
after themselves.

The result can be found here:  http://hg.borho.org/hgmerge

-- 
Steve Borho (steve at borho.org)
http://www.borho.org/~steve/steve.asc
Key fingerprint = 2D08 E7CF B624 624C DE1F  E2E4 B0C2 5292 F2C6 2C8C




More information about the Mercurial mailing list