You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Leslie Turriff <jl...@centurytel.net> on 2009/12/22 00:16:44 UTC

How to start over?

Hi,

	I'm just starting to explore using svn.  I have downloaded and
read /Version Control with Subversion For Subversion 1.5 (Compiled
from r3305)/.  I have installed svn and svnserve on my home computer
(running openSuSE 11.0), and it appears to be done right, as far as I
can see.
	I'm using svnserve mostly for practice; I realize that I didn't
have to set that up for a local repository.  Also, because my
personal partition is larger than my root partition, I have svnserve
pointing to a location there.
	So I run svnadmin create, and it seems to have worked, but when
I try to add entities to the repository I get these messages:

svn: '.' is not a working copy
svn: Can't open file '.svn/entries': No such file or directory

	I'm guessing that I set up something in the wrong order or
something.  If I want to start over, how do I get rid of the current,
empty repository?

	Thanks,

Leslie

Some environment information:
============================
turriff@pinto$ uname -a
Linux pinto 2.6.25.20-0.5-pae #1 SMP 2009-08-14 01:48:11 +0200 i686 i686 
i386 GNU/Linux
============================
turriff@pinto$ cat /etc/SuSE-release
openSUSE 11.0 (i586)
VERSION = 11.0
============================
turriff@pinto$ svn --version
svn, version 1.5.7 (r36142)
   compiled Aug 10 2009, 15:34:19

Copyright (C) 2000-2008 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet 
(http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using 
Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network 
protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
============================
turriff@pinto$ rpm -q cyrus-sasl
cyrus-sasl-2.1.22-140.2
============================
turriff@pinto$ cat /etc/sysconfig/svnserve
# Path:        Network/Subversion/svnserve
# Description: Basic configuration for svnserve
#
# Default options for the svnserve process:
# It is recommended to provide only readonly access to your data.
# There is no authentication possible; everyone can read and write at 
will.
# Read the subversion documentation about more information.
# Value type:     string
# Default value:  "-d -R -r /srv/svn/repos"
#
# svnserve should run as an unprivileged user:
# The userid/groupid svn is not created during package install;
# run 'useradd -d /srv/svn -s /bin/false svn ; groupadd svn' to create 
the
# userid and groupid.
# Value type:     string
# Default value:  "svn"
#
# svnserve should run as unprivileged user:
# Userid svn and groupid svn are not created during package install;
# run 'useradd -d /srv/svn -s /bin/false svn ; groupadd svn' to create 
the
# userid and groupid.
# Value type:     string
# Default value:  "svn"
#
SVNSERVE_OPTIONS="-d -R -r /home/turriff/svn/Project"
SVNSERVE_USERID="svn"
SVNSERVE_GROUPID="svn"
============================
turriff@pinto$ cat /etc/sasl2/svn.conf
pwcheck_method: saslauthd
mech_list:      plain digest-md5
============================
turriff@pinto$ grep svn /etc/{passwd,group}
/etc/passwd:svn:x:1003:100::/home/turriff/svn:/bin/false
/etc/group:svn:!:1001:
============================
turriff@pinto$ ll ~/svn/Project/
total 16
drwxr-xr-x 2 svn svn   80 2009-12-20 14:50 conf
drwxr-sr-x 6 svn svn 4096 2009-12-20 09:49 db
-r--r--r-- 1 svn svn    2 2009-12-20 09:49 format
drwxr-xr-x 2 svn svn 4096 2009-12-20 09:49 hooks
drwxr-xr-x 2 svn svn   39 2009-12-20 09:49 locks
-rw-r--r-- 1 svn svn  229 2009-12-20 09:49 README.txt
============================
turriff@pinto$ #My working directory; what I want to add to svn:
#My working directory; what I want to add to svn:
turriff@pinto$ tree -d ~/Documents/SourceCode/OpenPipelines
/home/turriff/Documents/SourceCode/OpenPipelines
|-- client
|   |-- branch
|   |-- tag
|   `-- trunk
`-- daemon
    |-- branch
    |-- tag
    `-- trunk

8 directories
============================

Re: How to start over?

Posted by Leslie Turriff <jl...@centurytel.net>.
On Monday 21 December 2009 21:12:51 Leslie Turriff wrote:
> On Monday 21 December 2009 19:21:08 Ryan Schmidt wrote:
> > On Dec 21, 2009, at 18:16, Leslie Turriff wrote:
> > http://subversion.tigris.org/faq.html#in-place-import
>
> 	Um.  I think I'll go back and re-read the book. :-)
>
	And, yep; there it is, plain as can be.  I remember reading it the 
first time, too, but I guess it got swamped in the details later. :-)

	Thanks.

Leslie

Re: How to start over?

Posted by Leslie Turriff <jl...@centurytel.net>.
On Monday 21 December 2009 19:21:08 Ryan Schmidt wrote:
> On Dec 21, 2009, at 18:16, Leslie Turriff wrote:
> > 	So I run svnadmin create, and it seems to have worked, but when
> > I try to add entities to the repository I get these messages:
> >
> > svn: '.' is not a working copy
> > svn: Can't open file '.svn/entries': No such file or directory
> >
> >
> > turriff@pinto$ #My working directory; what I want to add to svn:
> > #My working directory; what I want to add to svn:
> > turriff@pinto$ tree -d ~/Documents/SourceCode/OpenPipelines
> > /home/turriff/Documents/SourceCode/OpenPipelines
> >
> > |-- client
> > |
> > |   |-- branch
> > |   |-- tag
> > |
> > |   `-- trunk
> >
> > `-- daemon
> >
> >    |-- branch
> >    |-- tag
> >
> >    `-- trunk
>
> Sounds like you haven't created a working copy yet. There are two
> ways to do this. One is to "svn import" your tree into Subversion,
> move aside or delete the tree, and then check it out from the
> repository again with "svn checkout"; or the IMHO more intuitive
> "in-place" import method described in the FAQ:
>
> http://subversion.tigris.org/faq.html#in-place-import
>
	Um.  I think I'll go back and re-read the book. :-)

> > 	I'm guessing that I set up something in the wrong order or
> > something.  If I want to start over, how do I get rid of the
> > current, empty repository?
>
> I don't believe you need to in this instance, but if you do want to
> delete a repository, or a working copy, you simply delete it using
> your usual OS methods, and it will be gone.

	Okay; that's what I thought, but I thought that I'd make sure.

	Thanks, Ryan.

Leslie

Re: How to start over?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Dec 21, 2009, at 18:16, Leslie Turriff wrote:

> 	So I run svnadmin create, and it seems to have worked, but when
> I try to add entities to the repository I get these messages:
> 
> svn: '.' is not a working copy
> svn: Can't open file '.svn/entries': No such file or directory


> turriff@pinto$ #My working directory; what I want to add to svn:
> #My working directory; what I want to add to svn:
> turriff@pinto$ tree -d ~/Documents/SourceCode/OpenPipelines
> /home/turriff/Documents/SourceCode/OpenPipelines
> |-- client
> |   |-- branch
> |   |-- tag
> |   `-- trunk
> `-- daemon
>    |-- branch
>    |-- tag
>    `-- trunk


Sounds like you haven't created a working copy yet. There are two ways to do this. One is to "svn import" your tree into Subversion, move aside or delete the tree, and then check it out from the repository again with "svn checkout"; or the IMHO more intuitive "in-place" import method described in the FAQ:

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


> 	I'm guessing that I set up something in the wrong order or
> something.  If I want to start over, how do I get rid of the current,
> empty repository?

I don't believe you need to in this instance, but if you do want to delete a repository, or a working copy, you simply delete it using your usual OS methods, and it will be gone.