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

Re: Problem making an "in-place" import.

From: Nicolas <nospam0_at_massart.org>
Date: 2004-11-24 18:06:43 CET

I solved my problem,
I must not checkout /usr directory after mkdir on step 1, but only the
deepest directory wich is /usr/sbin on step 2.

Nicolas MASSART wrote:

> Hi !
> I'm trying to import "in-place" files into my repository as shown in
> the FAQs
> (http://subversion.tigris.org/project_faq.html#in-place-import) but
> I'm encountering some problems.
> As shown in the example, "importing" my /etc folder was successfull.
> But I also wanted to add bash scripts located in my /usr/sbin directory.
> I tryed the same thing as for /etc shown in the FAQ :
> 1 - I created the /usr directory with "svn mkdir" in the repository
> then after changing current directory to /usr, I checked it out with
> "svn co file:///home/svnrepository/usr ."
> 2 - I created the second directory as /usr/sbin in the repository with
> "svn mkdir". I did it in two steps, because, I can't create /usr/sbin
> in one time as /usr has to exist in the repository before I create
> /usr/sbin. Then after changing current directory to /usr/sbin, I
> checked it out with "svn co file:///home/svnrepository/usr/sbin ."
> 3 - I added my two scripts for a later commit with "svn add
> myscript.sh mysecondscript.sh"
> 4 - I tried to commit this added files with "svn commit -m "my bash
> scripts"", but it failed.
> svn said that my current working directory was not locked and so it
> can't commit.
> 5 - I deleted my repository, it's a test one, and started in a new
> way. I repeated steps 1 and tried to add the /usr/sbin directory.
> But It adds all the files contained in this folder whereas I only want
> to add my two scripts. So if I wanted to go in this way, I'll had to
> delete all other files from the repository except my two scripts. It's
> not a good way to do as SVN keeps history of this files and if I do
> such a thing for all directories where I want only two files, my
> subversion repository size will incredibly grow whereas I want to keep
> history on a few files.
>
> So is there any way to do this with SVN ? (knowing I really want to
> check out "in-place" instead of using a working directory somewhere
> and then copy the checked out files to the right place.)
>
> Thanks for all,
> Nicolas.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 24 18:46:14 2004

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.