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

RE: Getting started with subversion

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Wed, 14 Jul 2010 15:49:48 -0400

> I'm sorry guys (and gals), I have a very basic question: How to you
> get files into your repository. I've got the O'Reilly book (2nd
> Edition), but I'm afraid is presumes too much of me.

You might want to read the free book... it seems to me it explains it well and for someone that has never used it.

http://svnbook.red-bean.com/nightly/en/svn-book.html

> I looked at chapter 2, page 18, and it includes the following:
>
> ...typically use this when you have an existing tree of files that
> you want to begin tracking in your Subversion repository. For
> example:
>
> $ svnadmin create /ver/svn/newrepos
> $ svn import mytree file:///var/svn/newrepos/some/project \
>
> For the first line: what part of this is variable?
> For the second line: how do I know what to enter for
> "var/svn?newreos/
> some/project?"

The first line creates the repository. You specify whatever location you want.

The second line you know it is /var/svn/newrepos , which is the path to your repository, frankly because you remember what path you used when you created it. If course, the file:// protocol is probably not what you will use in production unless you are a single dev working on your projects.

>
> The path to my files on my computer is Macintosh
> HD/Users/TommyHome/
> KeelWorks/Projects/GraphicArt.
>
> My command client is Path Finder is set to "Macintosh: MyTaxes09
> TommyHome$" This is wrong, but I don't know how to change the
> directory. All tips accepted, except "get a brain" (I tried that).

I'm not sure what you mean here by "this is wrong". BTW: I haven't used PathFinder with svn. I just use the command line on my Mac.

>
> When I typed 'svnadmin create /ver/svn/newrepos' I got the
> following response:
>
> svnadmin: Repository creation failed
> svnadmin: Could not create top-level directory
> svnadmin: Can't create directory '/var/svn/newrepos': No such file
> or directory
> Macintosh:GraphicArt TommyHome$
>

On your mac you probably want to create the repository in your home folder... something like:

svnadmin create ~/svn/mytestrepo

> If someone would simple pretend that I am a 2-year old and tell me
> how to add files to the repository, I would be eternally grateful
> (or at least for a long time).
>
> Tomas

Read the redbook... I think it explains it very well.

BOb
Received on 2010-07-14 21:50:27 CEST

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.