Re: [PATCH] Split up the reintegrate merge API: first find what to do, then do it - v2
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Sun, 11 Dec 2011 20:53:26 +0000 (GMT)
DanielShahaf wrote:
> [ Caveat: I'm not at all familiar with merge.c ]
Thanks for casting your eyes over it anyway.
> Julian Foad wrote on Sun, Dec 11, 2011 at 19:35:04 +0000:
> Looks good.
Thanks.
Look at the following patch hunk, and ideally look also at the earlier hunk where we see these changes are inside the function that was called 'reintegrate_merge_locked' but is now a cut-down function called 'find_reintegrate_merge'. So ...
>> @@ -10628,31 +10631,76 @@ merge_reintegrate_locked(const char *sou
Instead of performing the merge, the (renamed) function now only finds the URLs and returns them. Then, later on (in merge_reintegrate_locked), instead of calling this 'merge_cousins' function directly, we instead call 'merge_locked' (which is the guts of svn_client_merge4()) which calls 'merge_cousins'.
>
AFAIK we've had this kind of initialization in the Subversion source for a long time now, so I'm treating it as de-facto acceptable even though not C'89. I've been writing quite a few of these recently. I can change them all to the long-winded alternative if proven necessary, but I hope it's not necessary because I really like the brevity.
- Julian
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.