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

Re: Importing a tree

From: Dale J. Chatham <dale_at_chatham.org>
Date: Wed, 07 Jan 2009 13:11:14 -0600

It appears that the way to do this is to first check out the directories
I'll be working with.

Then, as I create files, check to see if it already exists. If it does,
just write. If not, write the file, then an svn add.

At the end of the process, check the whole mess in.

Am I thinking straight?

Dale J. Chatham wrote:
> That I knew, but this is all automated under program control.
> So, the question is, given the tree, can I traverse the tree, checking
> (from essentially a command line) for each file/directory so I will
> know whether to add or import the file/directory.
> There are literally thousands of files, so checking everything out,
> then creating the files isn't something I want to do.
> Thanks,
> Dale
> Bob Archer wrote:
>> Once you import into the repository... you can not import again into the
>> same folder/path. At that point you would need to check out your project
>> to a working directory. Once you have done that any further exports will
>> be put into svn using
>> Svn add
>> Svn co
>> BOb
>>> -----Original Message-----
>>> From: Dale J. Chatham [mailto:dale_at_chatham.org]
>>> Sent: Tuesday, January 06, 2009 1:32 PM
>>> To: users_at_subversion.tigris.org
>>> Subject: Importing a tree
>>> Before someone says RTFM, I've spent a couple of days trying to answer
>>> this.
>>> I am using programs and web pages to create a tree of nagios
>>> configuration files. Parts of the tree may already exist, individual
>>> files may or may not exist.
>>> An import at the first branch doesn't always work. If everything is
>>> new, it works fine. If not, I get an error.
>>> Using subversion from the command line (or popen in php), how do I
>> make
>>> this work every time?
>>> TIA,
>>> Dale
>>> ------------------------------------------------------
>> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageI
>> d=
>>> 1008182
>>> To unsubscribe from this discussion, e-mail: [users-
>>> unsubscribe_at_subversion.tigris.org].


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-07 20:55:04 CET

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.