SVN repository creation - Linux Mint, Apache Subversion

1

I'm trying to follow the Quick-start to run the following commands and create the local SVN repository:

$ mkdir -p $HOME/.svnrepos/
$ svnadmin create ~/.svnrepos/my-repos
$ svn mkdir -m "Create directory structure." file://$HOME/.svnrepos/my-repos/trunk file://$HOME/.svnrepos/my-repos/branches file://$HOME/.svnrepos/my-repos/tags
$ cd my-directory
$ svn checkout file://$HOME/.svnrepos/my-repos/trunk ./
$ svn add --force ./
$ svn commit -m "Initial import"
$ svn up

Where, $ HOME here is "/ home / danilo". For "/ home" by default the installation of each user's folders.

That's when I run "svn mkdir". That is, in the third step. As follows:

svn mkdir -m "Create directory structure." file://$HOME/danilo/.svnrepos/my-repos/trunk file://$HOME/danilo/.svnrepos/my-repos/branches file://$HOME/danilo/.svnrepos/my-repos/tags

svn: E180001: Unable to connect to a repository at URL 'file:///home/danilo/danilo/.svnrepos/my-repos'
svn: E180001: Não foi possível abrir uma sessão ra_local para URL
svn: E180001: Não foi possível abrir repositório 'file:///home/danilo/danilo/.svnrepos/my-repos'
    
asked by anonymous 14.08.2015 / 17:53

1 answer

0

Based on the @CiganoMorrisonMendez comment, I tried to do the same procedure without using "file: //". It did not work, but I kept insisting and came up with the following solution successfully:

svn mkdir -m "Create directory structure." file:///home/danilo/.svnrepos/my-repos/trunk file:///home/danilo/.svnrepos/my-repos/branches file:///home/danilo/.svnrepos/my-repos/tags

Committed revision 1.

So the solution was that instead of using:

file://$HOME/danilo/.svnrepos/...

I had to use:

file:///home/danilo/.svnrepos/...

That is, I took the "// $ HOME" case and put "/// home / danilo".

Obs: From what I realized the "$ HOME" is actually equivalent to "/ home / danilo". The same goes for "~ /". Noob.

I recommend reading the documentation available on Apache Subversion Doc , especially the Portuguese version [out of date] of SVN-Book .

The version available in Portuguese that I downloaded is the one that covers version 1.4 of SVN. It is excellent, in very simplified and didactic language.

    
14.08.2015 / 20:59