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

Re: Help importing apache settings.

From: Campbell Allan <campbell.allan_at_sword-ciboodle.com>
Date: Thu, 29 Apr 2010 14:18:57 +0100

On Thursday 29 Apr 2010, j_dorocak wrote:
> Dear SVN folks,
>
>
>
> I am trying to import the current status of my apache2 server directory
> structure into a repository.
>
> I get cut off after 2 successes:
>
> Adding /home/jdor/webapps/pinax07server/apache2/logs
>
> Adding
> /home/jdor/webapps/pinax07server/apache2/logs/PrivateDoor_2009_05_06.log
>
> svn: Unknown or unversionable type for
> '/home/jdor/webapps/pinax07server/apache2/logs/wsgi.11484.0.1.sock'
>
>
>
> Are there any switches that will tell svn import to keep going, and just
> skip over that which is unversionable?
>
>
>
> Thanks in advance.
>
>
>
> Joe
>
>
>
> Joe Dorocak
>
> email: j_dorocak_at_comcast.net

You can use the svn:ignore property to avoid adding certain files or
directories. This is a property set on directories or globally in the config
file, in your case I'd put it on the apache2 directory unless you feel you
need to version log files? For example, in the
directory /home/jdor/webapps/pinax07server/apache2 run the command

svn propset svn:ignore logs .

although, like me, you may prefer to use the propedit command without the logs
parameter as I find it easier when adding multiple entries.

All of this assumes you are adding to a working copy rather than importing. I
think you'll need to add entries to the config file if you want to do it from
a svn import. The redbook page
http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.ignore.html
covers the ignoring files in much more detail, including how to do it from
the configuration files.

To me there isn't a big difference between adding and importing. All you need
to do for adding to a working copy is create an empty one and copy across the
apache directory. Then you can use the working copy commands to configure
exactly how you would like the files to be versioned without having to
cleanup mistakenly committed files such as the text log files.

Campbell

-- 
__________________________________________________________________________________
Sword Ciboodle is the trading name of ciboodle Limited (a company 
registered in Scotland with registered number SC143434 and whose 
registered office is at India of Inchinnan, Renfrewshire, UK, 
PA4 9LH) which is part of the Sword Group of companies.
This email (and any attachments) is intended for the named
recipient(s) and is private and confidential. If it is not for you, 
please inform us and then delete it. If you are not the intended 
recipient(s), the use, disclosure, copying or distribution of any 
information contained within this email is prohibited. Messages to 
and from us may be monitored. If the content is not about the 
business of the Sword Group then the message is neither from nor 
sanctioned by us.
Internet communications are not secure. You should scan this
message and any attachments for viruses. Under no circumstances
do we accept liability for any loss or damage which may result from
your receipt of this email or any attachment.
__________________________________________________________________________________
Received on 2010-04-29 15:21:20 CEST

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.