On Fri, Oct 5, 2012 at 2:32 PM, Ross Boylan <[email protected]> wrote: > I have output files that tend to differ in ways I don't care about > between runs; in particular there is date stamp at the top of every page. > I would like to be able to avoid having those differences detected, so > that it is easier to tell if anything has changed. > > If I could process the file before the diff tools get it, that would > solve the problem. I think doing this extra processing based on the > file extension would suffice, though it might be nice to have some other > way to control it. > > How can I do this? I can write a little python script to do the > transform, but I don't know how to hook it up. > > The GUI seems to permit only the tools that tortoisehg autodetects. If I > could tell it to run my script I think I'd have a solution.
You need to register your script as a diff/merge tool. See contrib/mergetools.rc in the TortoiseHg repo https://bitbucket.org/tortoisehg/thg/src/tip/contrib/mergetools.rc I don't think you can do this on Windows in such a way that it uses thg's Python interpreter, you will need to have Python installed separately. -- Steve Borho ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Tortoisehg-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

