[evla-sw-discuss] code organization

Brian Truitt btruitt at nrao.edu
Wed Oct 25 19:06:44 EDT 2006


Rich Moeser wrote:
> I think it would be beneficial to all if we had a subversion test 
> repository that we could play with. Can someone (Stephan) set one up and 
> briefly tell us how to get started? If subversion is similar to CVS and 
> simple to use we should have a pretty good feel for it within an hour or so.
> 
> --Rich
> 


Someone's gonna tell me to shut up soon....
Anyone can create their own svn repository as long as they have 
read/write permissions to the directory. So, for those that are chomping 
at the bit:

svnadmin create /users/<your username here>/mysvnrepo/

will create a repository and you can access it directly (as opposed to 
via ssh or https).

then the easiest way to start is to create a directory of stuff to 
import into svn. Make something like:

futuresvnlayout/
   proj/
     trunk/
     tags/
     branches/

and put whatever you want in trunk/

to import do:
svn import futuresvnlayout/ file:///users/<your username here>/mysvnrepo/

(all on one line)

that will do the import and your repository is "bootstrapped" so to 
speak. The directory "futuresvnlayout" is not in the repository. Only 
the stuff INSIDE that directory is.

Now you can get rid of futuresvnlayout if you want to, and check out 
your project to start playing:

svn co file:///users/<your username here>/mysvnrepo/proj/trunk proj

And there you have it. You're very own play area.

One of the best features of the svn client IMO, is the help. type svn 
help and you'll get help and a list of available commands.

Type svn help checkout and you'll get help on the checkout command. etc.

Also: You don't need any environment variables set up to use svn because 
you supply the url for the repository on the command line when you check 
stuff out. After that point you don't need the url to do normal updates 
and commits. (You do need it for making a tag as explained earlier 
though. Well, technically you don't have to have it then either, but 
there's no reason to complicate things yet.)

So there. Live long and prosper.

Brian



More information about the evla-sw-discuss mailing list