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

Re: Local Repo

From: <jblist_at_icloud.com>
Date: Thu, 25 Sep 2014 08:47:43 -0700

First, I wouldn't run svn as root like you are with 'sudo'. Instead, change the ownership of your repo so that you have write access.

Your command was trying to import 'cashier.cpp' into the repository as the name 'repos'. You need to do this instead:

   svn import -m "initial import" cashier.cpp file:////usr/local/svn/repos/cashier.cpp

Import is usually used to bring a whole tree of files into a repository in one shot. Import does not create a working copy, so you will need to subsequently check out to begin using svn to track changes to your file.

On Sep 25, 2014, at 8:41 AM, David Lowe <doctorjlowe_at_earthlink.net> wrote:

> Greetings
>
> I'm trying to set up a local repository for my schoolwork. The book doesn't seem to have many examples with this type of setup, so i seem to be stumbling a bit. First off, this part seemed to go okeh:
>
> $ sudo svnadmin create /usr/local/svn/repos
>
> But then this bit doesn't:
>
> $ sudo svn import -m "initial import" cashier.cpp file:////usr/local/svn/repos
> Password:
> svn: E150002: Path 'file:///usr/local/svn/repos' already exists
>
> How should i be going about this?
>
> sent from Mountain Lion
>
Received on 2014-09-25 17:48:31 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.