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

fs_copy FROM a transaction root?

From: Jean-François Doyon <jfdoyon_at_methane.ca>
Date: 2004-05-02 00:25:26 CEST

Hello,

I'm developping a Zope (http://www.zope.org) object storage system based on
Subversion's filesystem functionality, on top of Ape
(http://hathaway.freezope.org/Software/Ape). I'm using the Swig/Python API.

I've run into a problem with trying to do move/renames.

The application starts a transaction, executes a variety of filesystem based
operations, and then commits.

One of those operations might be a move/rename.

But, when Ape does this, it does so twice, using a temporary file.

So if I have a file "A" I want to rename to "B" this happens:

A -> TMP
TMP -> B

This is causing me problems because the svn_fs_copy (fs.copy in Python)
wants a REVISION root as a source ... My TMP file gets created within a
transaction however, so I can't really do the TMP -> B step ...

The use of the temporary file gets done by the application (Actually Ape,
the storage adapter) itself, so I don't really have any control over that
...

Anybody have any idea how I might get around this ? Seems to me I shouldn't
be the first (or last) to have this issue, but didn't see anything in the
archives.

Any insight would be greatly appreciated !

Thanks,
J.F.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 2 00:25:57 2004

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.