[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Quick poll: Does anybody actually still use diff wi
Re: [Monotone-devel] Quick poll: Does anybody actually still use diff with --external?
Sat, 08 Jan 2011 23:36:19 +0100
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; de; rv:188.8.131.52) Gecko/20101129 Lightning/1.0b3pre Thunderbird/3.1.7
Am 08.01.11 08:30, schrieb Richard Levitte:
> In message <address@hidden> on Sat, 08 Jan 2011 01:52:00 +0100, Thomas Keller
> <address@hidden> said:
> me> I'm working on issue 102 and to make this work properly I want to
> me> create the diff output and return it instead of just printing it
> me> to stdout directly. Problem is that the external diff hook calls
> me> execute("diff", "-u", ...) and I wonder if I should go through the
> me> hassle and use spawn_redirected to catch and return the output
> me> from there.
> I'm not sure what you're about to do... it does sound like you want
> to create the whole diff in memory and output it when it's complete.
Yes, this was my intention. See
> In my opinion, that would be a bad idea (think huge diffs), and I'm
> not quite sure how that would fix the sorting order, which is the
> actual issue here. Maybe I misunderstand what you're thinking of
Well, my plan was to use the parallel node iterator to produce a diff
for all changed nodes and save the results to a multimap. Then I'd
iterate over this multimap and output the actual diff.
GPG-Key 0x160D1092 | address@hidden | http://thomaskeller.biz
Please note that according to the EU law on data retention, information
on every electronic information exchange might be retained for a period
of six months or longer: http://www.vorratsdatenspeicherung.de/?lang=en
Description: OpenPGP digital signature