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
https://code.monotone.ca/p/monotone/issues/102/#ic315.
> 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
> doing...
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.
Thomas.
--
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