mercurial: Re: mercurial: Mercurial and diff tools

Matt Mackall mpm at selenic.com
Tue Apr 27 15:05:59 CDT 2010


On Tue, 2010-04-27 at 13:01 -0700, Greg Lindahl wrote:
> On Tue, Apr 27, 2010 at 09:51:49PM +0200, Mads Kiilerich wrote:
> > Greg Lindahl wrote, On 04/27/2010 09:07 PM:
> >> On Sun, Apr 25, 2010 at 02:43:08PM +0400, Sergey Antonov wrote:
> >>
> >>    
> >>> Is there any plans to support diff-tools in mercurial similar to
> >>> merge-tools ?
> >>>      
> >> My devs would like that -- we mail out changeset notifications, and
> >> most of them use gmail... which doesn't use monospace fonts unless you
> >> MIME up.  And if you MIME up, might as well colorize the diffs...
> >>    
> >
> > That seems to me like a feature request quite different to what Sergey  
> > asked.
> >
> > You just want highlight functionality in the notify extension?
> 
> I'd like to be able to pick arbitrary diff tools in notify just like I
> can for "hg diff". And it might as well be done like merge-tools so I
> can have different diffs for various file types.

The big problem I see here is: the output of diff is intended to be
understood by patch.

If we allow users to globally and by default do magical non-diff diffs
with commands generating diffs, then they'll start sending people
nonsense patches and breaking workflows that expect actual diffs.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial mailing list