ANN: svn_conf generator -- making "svn import" easy and fun

Rails make it easy to start a new application. At the same time, import
a new project into Subversion is not that simple – there are quite few
files that should be ignored.

I used to manually remove added log files and tmp/cache, tmp/sessions,
tmp/sockets files after the import and then go through the painful
process of setting svn:ignore properties.

There is an easier way – simply create .cvsignore files before the
import and svn will honor them.

I created svn_conf generator which will add a new rake task to your
project to automate this. I hope you will find it useful.

Instructions:

  1. Install svn_conf generator

gem install --source http://dist.agilewebsolutions.com/
svn_conf_generator-0.0.2.gem svn_conf_generator

  1. Generate svn_conf in a new rails project (not imported into svn)

./script/generate svn_conf

  1. Run svn:configure task to create .cvsignore files

rake svn:configure

Best regards, Roustem

[email protected]

wow! Great! i think i need it much

Roustem K. wrote:

I created svn_conf generator which will add a new rake task to your
project to automate this. I hope you will find it useful.

Instructions:

  1. Install svn_conf generator

gem install --source http://dist.agilewebsolutions.com/
svn_conf_generator-0.0.2.gem svn_conf_generator

id-ruby:~ arie$ sudo gem install --source
http://dist.agilewebsolutions.com/ svn_conf_generator-0.0.2.gem
svn_conf_generator
Attempting local installation of ‘svn_conf_generator-0.0.2.gem’
Local gem file not found: svn_conf_generator-0.0.2.gem*.gem
Attempting remote installation of ‘svn_conf_generator-0.0.2.gem’
Updating Gem source index for: http://dist.agilewebsolutions.com/
ERROR: While executing gem … (OpenURI::HTTPError)
404 Not Found
id-ruby:~ arie$ sudo gem install svn_conf_generator --source
http://dist.agilewebsolutions.com/
Attempting local installation of ‘svn_conf_generator’
Local gem file not found: svn_conf_generator*.gem
Attempting remote installation of ‘svn_conf_generator’
Updating Gem source index for: http://dist.agilewebsolutions.com/
ERROR: While executing gem … (OpenURI::HTTPError)
404 Not Found
id-ruby:~ arie$

what am i doing wrong??

Best regards, Roustem

[email protected]


sig “kind regards” :name => “Arie Kusuma A.”, :callme => “Arie”,
:yahoo_messenger => “riyari3”, :email => “[email protected]”,
:blog => %Q~ http://ariekusumaatmaja.wordpress.com ~

haree genee pake (as|ph)p ?
siape lu mo bikin framework Ruby test/unit pake php :stuck_out_tongue:

On Wednesday, April 26, 2006, at 10:46 AM, Arie Kusuma A. wrote:

http://dist.agilewebsolutions.com/
Attempting local installation of ‘svn_conf_generator’
Local gem file not found: svn_conf_generator*.gem
Attempting remote installation of ‘svn_conf_generator’
Updating Gem source index for: http://dist.agilewebsolutions.com/
ERROR: While executing gem … (OpenURI::HTTPError)
404 Not Found
id-ruby:~ arie$

what am i doing wrong??

Sorry, I got spaces in the source url. This should work:

gem install --source http://dist.agilewebsolutions.com/
svn_conf_generator-0.0.2.gem svn_conf_generator

Hmm I get the following error…

sudo gem install --source
http://dist.agilewebsolutions.com/svn_conf_generator-0.0.2.gem
svn_conf_generator
Attempting local installation of ‘svn_conf_generator’
Local gem file not found: svn_conf_generator*.gem
Attempting remote installation of ‘svn_conf_generator’
Updating Gem source index for:
http://dist.agilewebsolutions.com/svn_conf_generator-0.0.2.gem
ERROR: While executing gem … (NoMethodError)
undefined method `name’ for nil:NilClass

Jim M. wrote:

undefined method `name' for nil:NilClass

http://wiki.rubyonrails.org/rails/pages/SVN+Conf+Generator
yeah… same here

id-ruby:~ arie$ sudo gem install --source
http://dist.agilewebsolutions.com/svn_conf_generator-0.0.2.gem
svn_conf_generator
Password:
Attempting local installation of ‘svn_conf_generator’
Local gem file not found: svn_conf_generator*.gem
Attempting remote installation of ‘svn_conf_generator’
ERROR: While executing gem … (NoMethodError)
undefined method `name’ for nil:NilClass
id-ruby:~ arie$


sig “kind regards” :name => “Arie Kusuma A.”, :callme => “Arie”,
:yahoo_messenger => “riyari3”, :email => “[email protected]”,
:blog => %Q~ http://ariekusumaatmaja.wordpress.com ~

haree genee pake (as|ph)p ?
siape lu mo bikin framework Ruby test/unit pake php :stuck_out_tongue:

On Wednesday, April 26, 2006, at 3:52 AM, Roustem K. wrote:

Sorry, I got spaces in the source url. This should work:

gem install --source http://dist.agilewebsolutions.com/
svn_conf_generator-0.0.2.gem svn_conf_generator

The url is still broken. Please see Wiki for instructions:

http://wiki.rubyonrails.org/rails/pages/SVN+Conf+Generator

Roustem K. wrote:

On Wednesday, April 26, 2006, at 12:54 PM, Arie Kusuma A. wrote:

Jim M. wrote:

Hmm I get the following error…

yeah… same here

Thanks a lot for testing this. After Rails, rubygems requires a lot of
configuration. The problem is now fixed. This command should work:

gem install --source http://dist.agilewebsolutions.com
svn_conf_generator

Roustem

I had another error:

Attempting local installation of ‘svn_conf_generator’
Local gem file not found: svn_conf_generator*.gem
Attempting remote installation of ‘svn_conf_generator’
Updating Gem source index for: http://dist.agilewebsolutions.com
ERROR: While executing gem … (ArgumentError)
parse error on line 24, col -1: `’


Later I found out that the generator is available via rubyforge:

gem install svn_conf_generator --remote

And this worked finally for me too.

I installed from rubygems…

sudo gem install svn_conf_generator --remote
Attempting remote installation of ‘svn_conf_generator’
Updating Gem source index for: http://gems.rubyforge.org
Successfully installed svn_conf_generator-0.0.3

Then on new project…

./script/generate svn_conf

Then I did this…

rake svn:configure

(in …)
Setting svn:ignore properties:
svn: ‘tmp/cache’ is not a working copy
svn: ‘tmp/sessions’ is not a working copy
svn: ‘tmp/sockets’ is not a working copy
svn: ‘log’ is not a working copy
svn: ‘config’ is not a working copy
svn: ‘db’ is not a working copy
Done.

dir -a
. … app components config db doc lib log public Rakefile
README script
test tmp vendor

There seem to be no .cvsignore or .svnignote files anywhere to be found.
Did I do
something wrong? or does this need to be run after svn import? (Which
would seem to go
against the whole purpose of the thing).

Jim M. wrote:

Then I did this…
Done.

dir -a
. … app components config db doc lib log public Rakefile README script
test tmp vendor

There seem to be no .cvsignore or .svnignote files anywhere to be found. Did I do
something wrong? or does this need to be run after svn import? (Which would seem to go
against the whole purpose of the thing).

seems you haven’t checkout your svn project after you imported it ?
it works fine here…


Name : Arie Kusuma A., A.K.A Arie / YM! = riyari3
Blog : http://ariekusumaatmaja.wordpress.com
Ruby : Yahoo | Mail, Weather, Search, Politics, News, Finance, Sports & Videos
!Ruby : IndoForums.com is for sale | HugeDomains

haree geneee pake (aa ess | pe ha) pe ??

On Wednesday, April 26, 2006, at 12:54 PM, Arie Kusuma A. wrote:

Jim M. wrote:

Hmm I get the following error…

yeah… same here

Thanks a lot for testing this. After Rails, rubygems requires a lot of
configuration. The problem is now fixed. This command should work:

gem install --source http://dist.agilewebsolutions.com
svn_conf_generator

Roustem

I haven’t checked it in either :slight_smile: I thought the purpose of this was to
create .cvsignore
files, so when you import it, it doesn’t checkin files and directories
that should to be
ignored.

Guess I was wrong.