[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Ev2 as a move-aware editor

From: Branko Čibej <brane_at_wandisco.com>
Date: Mon, 24 Jun 2013 18:05:51 +0200

On 24.06.2013 17:52, Branko Čibej wrote:
> You're breaking the once rule here.
>
> And the case you're describing can never occur. You cannot have a
> working copy that describes what you're doing. Tree mutations can only
> be parallelized across distinct subtrees, which isn't the case in your
> example; where the operations interact, they must be sequential or they
> don't mean anything.
>
> Your case is either:
>
> A->A2; A2/B -> B2
>
> or
>
> A/B -> B2; A -> A2
>
> which happen to be the two simplest sequences of working copy changes
> that'll generate your end result.

Add to the mix the "parents before children" rule and only the first
case remains valid. So we get:

    alter_dir . (removes A, adds A2 and B2)
    move A A2
    alter_dir A2 (removes B)
    move A2/B B2

The above sequence does not violate the once rule.

-- Brane

-- 
Branko Čibej | Director of Subversion
WANdisco // Non-Stop Data
e. brane_at_wandisco.com
Received on 2013-06-24 18:06:27 CEST

This is an archived mail posted to the Subversion Dev mailing list.