TWiki::Merge "\\r?\\n", a line-by-line merge will be done.
Where conflicts exist, they are labeled using the provided revision
numbers. If a $writeConflict method is passed, then that's called
to override the built-in conflict formatting. Non-conflicting content
is not labeled.
Here's a little picture of a 3-way merge:
a <- ancestor
/ b c <- revisions
\ /
d <- merged result, returned.
call it like this:
my ( $ancestorMeta, $ancestorText ) =
$store->readTopic( undef, $webName, $topic, $originalrev );
$newText = TWiki::Merge3::merge(
$ancestorText, $prevText, $newText,
$originalrev, $rev, "new",
'\r?\n' );
| Topic TWikiMerge3DotPm . { Edit | Attach | Backlinks: Web All webs | Printable | History: r1 More } |
|
Ideas, requests, problems regarding TWiki? Send feedback Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiMerge3DotPm |