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

Re: Question about svn import and svn_load_dirs.pl

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-07-12 23:58:21 CEST

On Jul 12, 2007, at 03:26, ying lcs wrote:

> I have a question about "svn import" and "svn_load_dirs.pl"
>
> I am trying to add source files to subversion like this:
> svn import /path/to/org-source \
> file:///srv/svn/repositories/source/trunk \
> -m "Initial import"
>
> and then another one like this:
> svn_load_dirs.pl \
> -t tags/VERSION2 \
> file:///srv/svn/repositories/source \
> trunk \
> /path/to/modified-source
>
> my question is if '/path/to/org-source' and '/path/to/modified-source'
> already contain directories for svn metadata (i.e. the .svn
> directory). Will that screw up my import? The reason
> '/path/to/org-source' and '/path/to/modified-source' already contain
> svn metadata directory is because those directories are created by
> checking out stuff from a totally different subversion server of a
> different repository.

svn import is supposed to ignore any existing .svn directories. I
would think svn_load_dirs.pl would too, but I'm not 100% sure.

> If that may cause a problem, can you please tell me how can I fix it?

You could svn export your checked out working copy to a temporary
directory, then svn import or svn_load_dirs.pl that temporary
directory, then delete the temporary directory.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 12 23:58:24 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.