isn't variance adjusted patching horribly dangerous?
From: Tom Lord <lord_at_emf.net>
Date: 2003-04-09 00:15:21 CEST
I've been reading:
http://svn.collab.net/repos/svn/trunk/www/variance-adjusted-patching.html
There are times when variance adjusted patching would certainly do
But in general, it seems quite dangerous precisely because it
Perhaps I've misunderstood how it works, so let me illustrate what I'm
Consider, for example, a common ancestor that starts with:
T:8 == B:1
last = x;
On the trunk:
T:19 (unchanged from T:8)
last = x;
T:20 (second line changed from T:19)
last = x;
And on the branch:
B:15 (first line changed from B:1)
last = x, counter += x;
In this case, both the trunk and branch programmers added a needed
The programmer wants to apply T:19-T:20 to B:15.
Between T:19 and T:20, only one line changed here (the assignment to
*** T:19
That will be adjusted to account for the changes between T:8 and T:19
*** T:19
which will apply without conflict to B:15, yielding:
B:16
last = x, counter += x;
which (because of the duplicated assignments to counter) is likely to
Now, to be fair -- even regular textual patching, without the variance
But one of the ways we traditionally reduce that risk is by using
The example above illustrates a case where ordinary patching would do
A less aggressive form of variance adjustment would seem to me to be
Referring to
http://svn.collab.net/repos/svn/trunk/www/variance-adjusted-patching.html
that would be cases 1 and 2 of the two 7-case adjustment algorithms
Yet even _that_ kind of adjustment presents new dangers, and I don't
-t
---------------------------------------------------------------------
|
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.