You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rich Shepard <rs...@appl-ecosys.com> on 2014/07/14 18:21:13 UTC

Clarifying Repository Setup and Initial Import

   Running 1.7.16 on Slackware-14.1. I used svn about a decade ago and am now
starting a new project and want to start fresh with the tool. I've read the
book, particularly Chapters 2 and 5 several times and still have questions
whose answers I don't find in the book.

   The repository is located in ~/development/svn-repos/. Following the
section "Planning Your Repository Organization" in Chapter 5 I created two
project root directories which I'll call project-A/ and project-B/. Under
each of these I created the subdirectories of branches/, tags/, and trunks/.
However, running 'svnadmin create ~/development/svn-repos/' from
~/development failed because the directory existed so I removed the
svn-repos/ subdirectory and re-ran the svnadmin create command. Then I
recreated the two project subdirectories (root, branches, tags, and trunk).

   When I run 'svnlook info file:///home/rshepard/development/svn-repos/'
this error is reported:

svnlook: E000002: Can't open file
'file:/home/rshepard/development/svn-repos/format': No such file or
directory

Yet, that file is present:

ls svn-repos/
README.txt  conf/  db/  project-A/  format  hooks/  locks/  project-B/

Is this error generated because I've not yet imported either project?

   To import the current code for each project, I assume that I need to cd to
that project's subdirectory before running 'svn import'. When I specify the
repository location with
file:///home/rshepard/development/svn-repos/project-?/ do I also need to
specify the trunk/ subdirectory?

   When I clarify how to get the repository directory structure correct, and
use the correct syntax to populate each project's repository, I will use
that same syntax to checkout and commit changes to each project.

Rich


Re: Clarifying Repository Setup and Initial Import

Posted by Rich Shepard <rs...@appl-ecosys.com>.
On Mon, 14 Jul 2014, Mark Phippard wrote:

> You cannot manipulate the actual file system of your repository using your
> OS commands.

Mark,

   I didn't think so, but the book is not very clear on this.

> Create the empty repository then use svn mkdir to create folders in the
> repository. You only see the content of a repository using SVN client.

   OK. Thanks!

Rich

Re: Clarifying Repository Setup and Initial Import

Posted by Rich Shepard <rs...@appl-ecosys.com>.
On Mon, 14 Jul 2014, Mark Phippard wrote:

> Create the empty repository then use svn mkdir to create folders in the
> repository.

Mark,

   It took me two tries to get it right because the first time I used the
--parent option with mkdir and that removed the original source directories
for which I was trying to create svn repositories.

   After copying the two source directories from the backup drive I first
created each project's root directory (using 'svn mkdir file:///....'), then
adding the subdirectories of branches/, tags/, and /trunk. That left the
original project directories in place.

   Importing each project to the respective repository directory, removing
the original project files, then checking out each trunk worked just fine.

Thanks again for clarifying,

Rich

Re: Clarifying Repository Setup and Initial Import

Posted by Mark Phippard <ma...@gmail.com>.
You cannot manipulate the actual file system of your repository using your OS commands.

Create the empty repository then use svn mkdir to create folders in the repository. You only see the content of a repository using SVN client.



> On Jul 14, 2014, at 9:21 AM, Rich Shepard <rs...@appl-ecosys.com> wrote:
> 
>  Running 1.7.16 on Slackware-14.1. I used svn about a decade ago and am now
> starting a new project and want to start fresh with the tool. I've read the
> book, particularly Chapters 2 and 5 several times and still have questions
> whose answers I don't find in the book.
> 
>  The repository is located in ~/development/svn-repos/. Following the
> section "Planning Your Repository Organization" in Chapter 5 I created two
> project root directories which I'll call project-A/ and project-B/. Under
> each of these I created the subdirectories of branches/, tags/, and trunks/.
> However, running 'svnadmin create ~/development/svn-repos/' from
> ~/development failed because the directory existed so I removed the
> svn-repos/ subdirectory and re-ran the svnadmin create command. Then I
> recreated the two project subdirectories (root, branches, tags, and trunk).
> 
>  When I run 'svnlook info file:///home/rshepard/development/svn-repos/'
> this error is reported:
> 
> svnlook: E000002: Can't open file
> 'file:/home/rshepard/development/svn-repos/format': No such file or
> directory
> 
> Yet, that file is present:
> 
> ls svn-repos/
> README.txt  conf/  db/  project-A/  format  hooks/  locks/  project-B/
> 
> Is this error generated because I've not yet imported either project?
> 
>  To import the current code for each project, I assume that I need to cd to
> that project's subdirectory before running 'svn import'. When I specify the
> repository location with
> file:///home/rshepard/development/svn-repos/project-?/ do I also need to
> specify the trunk/ subdirectory?
> 
>  When I clarify how to get the repository directory structure correct, and
> use the correct syntax to populate each project's repository, I will use
> that same syntax to checkout and commit changes to each project.
> 
> Rich
> 

Re: Clarifying Repository Setup and Initial Import

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jul 14, 2014, at 11:21 AM, Rich Shepard wrote:

> When I run 'svnlook info file:///home/rshepard/development/svn-repos/'
> this error is reported:
> 
> svnlook: E000002: Can't open file
> 'file:/home/rshepard/development/svn-repos/format': No such file or
> directory
> 
> Yet, that file is present:
> 
> ls svn-repos/
> README.txt  conf/  db/  project-A/  format  hooks/  locks/  project-B/
> 
> Is this error generated because I've not yet imported either project?

The "svn" command accepts URLs, but the "svnlook" command requires paths, not URLs.

svnlook info /home/rshepard/development/svn-repos/