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

Re: svn commit: r1434913 - /subversion/trunk/subversion/libsvn_wc/wc_db.c

From: Stefan Sperling <stsp_at_elego.de>
Date: Fri, 18 Jan 2013 10:59:11 +0100

On Fri, Jan 18, 2013 at 10:43:35AM +0100, Stefan Sperling wrote:
> If you move a node that isn't present in op_depth == 0, you don't need
> to preserve the old location of the node.

Should have phrased this better: "If you move a node that is newly
added ..."

Of course we can move nodes within copied subtrees where op_depth > 0.
For lack of a better word, we could call this a "reference layer" for
the move, which is the layer we need to track the move in.

But any node at path A that replaces a moved-away node A' will be a copy
or a new addition at path A, and moving A to C doesn't need to leave
a trace of move information at path A. We can simply forget that the
node which is now at C used to shadow the moved-away A'.

It's a bit difficult to discuss node identities in terms of path names.
Above I'm using A' to designate the node that was originally present in
in the "reference layer" and has been moved, and A for the node that is
replacing the moved-away A'. I hope I'm making some kind of sense :)
Received on 2013-01-18 10:59:50 CET

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.