LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-24-2009, 03:38 PM   #1
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,055

Rep: Reputation: 78
selectively check in multiple files using SVN


I have a really elaborate website project and I'd like to check in all the code to an SVN repository WITHOUT checking in all the jpg, pdf, sql, .mobi files, etc. I have subclipse installed on my local machine as part of Eclipse, but downloading the entire site and doing it file-by-file would take a very long time.

I'm hoping to determine how I can:
1) check in certain file types in a directory (e.g, /home/foo/public_html) while excluding certain file types (e.g., *.jpg, *.pdf, etc.) and subdirectories (e.g. exclude home/foo/public_html/images) in that directory.

2) I need to specify that this initial checking of my entire project goes into the /trunk folder in my SVN repository -- and not the root, not 'branch' subdir, etc. Also, I need the directory structure of my files to be preserved. that is to say i don't want /includes/conf/config.php to be at the root of my trunk folder in my repository.

3) I need to specify a comment that is applied to all of the files I'm checking in. E.g., "this is the initial checkin dated 12/24/2009, happy holidays!"


I've tried getting command-line help about svn but it's hardly informative for a noob:
Code:
svn help ci
I've also tried googling a bit and the 'tutorials' I'm getting are not helpful.

Any advice, tips, or resources would be most appreciated.
 
Old 01-04-2010, 10:28 AM   #2
jessed
LQ Newbie
 
Registered: Dec 2006
Location: Olympia, WA
Distribution: Ubuntu
Posts: 4

Rep: Reputation: Disabled
Check out I think the functionality you are after is handled by setting the 'svn:ignore' property or the file/folders you want to avoid committing.

svn:ignore is described in 'svn help propset'

This is a blog entry, but it provides an easier-on-the-eyes of the functionality: http://www.petefreitag.com/item/662.cfm


--jesse
 
Old 01-12-2010, 05:19 PM   #3
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,055

Original Poster
Rep: Reputation: 78
Thanks for the tip! I managed to accomplish this eventually by using tar to create a copy of my source using an exclude file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy svn working dir without svn hidden dirs and files? erinspice Linux - Software 4 03-29-2011 06:58 PM
Selectively moving files from a tree with a specific string anywhere in the path waterdragon900 Linux - Newbie 8 08-18-2008 10:57 AM
how to selectively print version numbers from log files craftereric Linux - General 1 04-21-2008 11:02 AM
Web SVN Check IN/OUT? Trojaneyez Programming 2 12-29-2007 05:21 PM
SVN multiple users accessing same files. DavidDiggs Linux - Server 1 05-08-2007 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration