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

Re: rails project for google code

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-12-11 10:31:27 CET

On Dec 11, 2007, at 02:58, Thufir wrote:

> First off, subversion is amazingly helpful. How to make it work with
> google code for a rails project, though?

I don't know much about rails, never used it, and this isn't really a
rails-specific question, but it's easy to answer:

> So, I can create a google code project and run the command:
>
> svn checkout https://strawr.googlecode.com/svn/trunk/ strawr --
> username
> hawat.thufir
>
> This will check out an empty directory (with the .svn sub-
> directory), ok.
>
> In a totally different, unrelated, location:
>
> rails strawr --database=sqlite3"
>
> will *create* directory strawr
>
>
> Now the pickle: there are two different "strawr" directories. The
> kludge: move the .svn directory from the strawr directory which is
> revision 1 (downloaded from google) and plop it into the the strawr
> directory created by the rails command.
>
> Use "svn add foo" to manually add the umpteen files and directories
> created by the rails command; run "svn commit".
>
> This works but is clumsy. What's the better way, keeping in mind that
> it's a rails project?

The easier way is called an in-place import, described in the FAQ:

http://subversion.tigris.org/faq.html#in-place-import

You would create the strawr directory with:

rails strawr --database=sqlite3"

Then you check out the empty Google Code repository directory right
on top of it:

svn checkout https://strawr.googlecode.com/svn/trunk/ strawr --
username hawat.thufir

Now you "svn add" the umpteen files and directories.

If adding the umpteen files and directories is what's bothering you,
then maybe you want a regular import instead. After you create the
strawr directory:

rails strawr --database=sqlite3"

Go into it and import everything into the repository:

cd strawr
svn import * https://strawr.googlecode.com/svn/trunk

Then delete the strawr directory and check it out again from the
repository.

rm -rf strawr
svn checkout https://strawr.googlecode.com/svn/trunk/ strawr --
username hawat.thufir

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 11 10:35:26 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.