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

rails project for google code

From: Thufir <hawat.thufir_at_gmail.com>
Date: 2007-12-04 21:57:02 CET

I'm floundering a bit with subversion. I found the following in the rails
recipe book (oreilly) and am looking for input on the general idea below. I'm
looking for the simplest way to be able to commit changes to
<http://code.google.com/p/rss-on-rails/> easily, even if it's not efficient and
uses "too much" bandwidth.

An excerpt, almost word for word, from the text:

/home/svn$ svnadmin create blog
/home/svn$ ls blog/

conf dav db format hooks locks README.txt

/home/svn$ cd ~/projects/blog; ls
app components config db doc lib log public Rakefile
README script test vendor

import the entire project:

svn import -m "initial import" . \ > file:///home/svn/blog
Adding test
Adding test/unit
Adding test/test_helper.rb
...
Adding public/favicon.ico

Committed revision 1.

~/projects/blog$

now delete the initial project file

~projects$ cd ..; rm -rf blog/

~projects$ svn checkout file://home/svn/blog
A blog/test
A blog/test/unitL
...
A blog/public/favicon.ico
Checked out revision 1.
~projects$

~projects$ cd blog
~/projects/blogs$ svn remove log/*
D log/development.log
D log/production.log
D log/server.log
D log/test.log

~projects/blog$ svn commit -m 'removed log files'

Deleting log/development.log
Deleting log/production.log
Deleting log/server.log
Deleting log/test.log

Committed revision 2.

Next, instruct Subversion to ignore th logfiles that get recreated by Rails:

~/projects/blog$ svn propset svn:ignore "#.log" log/
property "svn:ignore" set on 'log'
~projects/blogs$

Now, update the log directory, and commit the property change:

~/projects/blog$ svn update log/
At revision 2.

~projects/blogs$ svn commit -m 'svn ignore new log/*.log files'
Sending log

Committed revision 3.

~projects/blog$

thanks,

Thufir

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 4 22:08:44 2007

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.