Re: Setting up Subversion (was: Setting up CVS so it actually works!)
Re: Setting up Subversion (was: Setting up CVS so it actually works!)
- Subject: Re: Setting up Subversion (was: Setting up CVS so it actually works!)
- From: Shawn Erickson <email@hidden>
- Date: Sat, 10 Jul 2004 15:31:21 -0700
On Jul 10, 2004, at 2:25 PM, Terrence Talbot wrote:
One thing that was hard for me to figure out, and doesn't seem to be
covered well in the book, is setting up something like a
CVSROOT/cvsignore file so that imports don't suck things in that you'd
rather not see in the repository.
My ultimate solution was to create an /etc/subversion directory on the
server that contains the repository and put a config file in there
with a global-ignores line that includes the usual suspects, e.g.,
.DS_Store, build, *~.nib, etc.
The easiest way to do this is to set up a quick local (test)
repository, add something, and then check it back out. Using the svn
client locally will create a ~/.subversion directory with the standard
files in it. Copy that to /etc/subversion on the server, edit config
appropriately, and then import/add/whatever.
If you set global-ignores on both the server and your home directory,
new files matching those patterns will be effectively ignored during
imports, updates, etc.
I am hitting the cvsignore issue currently.
On my server (using svn+ssh to hit the repository since it is the
simplest to deal with for what I currently need, in house with a few
users only) I created a /etc/subversion and created a file called
config. My config looks like the following...
[Cube:~] shawnce% more /etc/subversion/config
[miscellany]
global-ignores = build *~.* .* *.pbxuser *.mode1 *.app *.kext
*.framework
When I do an import doesn't ignore things as I want (note .pbxuser is
imported, etc.)
[G5:projects/ftsw/ThreadTools] shawnce% svn import -m "Import" .
svn+ssh://cube.local/repository/ftsw/ThreadPool
Adding version.plist
Adding FTSWThreadPool.m
Adding FTSWThreadPoolWorkerPrivate.h
Adding FTSWThreadPoolWorkItem.m
Adding FTSWThreadPoolWorker.h
Adding Info.plist
Adding FTSWThreadPoolPrivate.h
Adding ThreadTools.xcode
Adding ThreadTools.xcode/shawnce.pbxuser
Adding ThreadTools.xcode/project.pbxproj
Adding ThreadTools.xcode/shawnce.mode1
Adding FTSWThreadPoolWorker.m
Adding FTSWThreadPool.h
Adding FTSWThreadPool_Prefix.pch
Adding FTSWThreadPoolWorkItem.h
Adding English.lproj
Adding (bin) English.lproj/InfoPlist.strings
Adding ThreadTools_Prefix.pch
Committed revision 1.
Do I need to set it per user / system as well?
-Shawn
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.