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

Re: Can svn_fs_copy() copy from txn nodes in the same txn?

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2007-11-07 20:40:40 CET

Blair Zajac wrote:
> Currently svn_fs_copy() only allows you to copy a node from a revision
> fs root into a txn fs root.
>
> Would it work in the BDB and FSFS backends with no code changes if we
> allow copies from a txn fs root only if the destination fs root is the
> same txn as the source fs root?

No.

That's explicitly the case we did *not* want to allow. I don't recall the
exact details, but doing this means we have to add some additional cycle
protection logic that currently doesn't exist. I think the problematic case
is something like:

   svn_fs_copy(txn_root, "/some/path", txn_root, "/some/path/under/path");

If the source root is a rev_root, of course, this is totally doable. But if
the source is a transaction, you've just introduced a cycle into the graph.

-- 
C. Michael Pilato <cmpilato@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on Wed Nov 7 20:41:56 2007

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