It seems that with patch2455 we have a simple mitigation for the
longstanding problem with duplicates in V1 and V2. This suggests to me
that we may want to revisit the question of commutation consistency.
To be clear, (commutation) consistency is the requirement that whether
named patches A;B commute (assuming they are adjacent) does not depend
on the context (the patches preceding them).
It is this property that lets us conclude that in two forking sequences
we can always commute common patches "backwards" before any uncommon
ones. I think it is also equivalent to saying that patches have a unique
minimal context.
But do we actually have to require this? Unique minimal contexts are
theoretically nice but irrelevant in practice (since computing them is
too expensive), and as my patch shows we can merge just fine without the
two branches being disjoint (name-wise). Are there important patch laws
that break down if we drop consistency?
And do we, as users, actually care about whether commutation behavior is
consistent in this way, as long as everything else "just works"?
Note that consistency is not the same as permutivity, even though it is
easy to confuse them (or throw both properties together, as we do in our
unit tests). Permutivity says that for any given sequence of named
patches, any series of commutations that results in the same sequence of
names, is also the identity with regard to patch /content/.
Cheers
Ben
_______________________________________________
darcs-devel mailing list
[email protected]
https://lists.darcs.net/mailman/listinfo/darcs-devel