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

svn import --replace??

From: Daniel Patterson <danpat_at_danpat.net>
Date: 2005-02-14 12:06:50 CET

I've recently had a user ask me if it would be possible to import
a local directory structure over the top of one that already exists
in a Subversion repository, making new revisions of files that alread
exist, and adding ones that don't.

I pointed them to svn_load_dirs.pl, but they weren't keen. They
wanted to import files over the top without having to create a
working copy. In this context, Subversion is being used as a versioned
file repository, with the application serving content directly
from the repository, and wanting to update it in the same way.

The user is using the javahl bindings, so only has the functions
exposted by that available.

I've taken a look at the libsvn_client/commit.c functions where
import is implemented. It looks reasonably easy to add new files,
but it seems to be non-trivial to make modifications to existing
files (the client is expected to be able to calculate a delta?).

Am I correct in this, or would it be easier than to do updates
to existing files using import?

daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 14 12:11:04 2005

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.