Marcin
Marcin

Reputation: 5589

svn working copy issue

Hi guys I have an easy question, but not easy to me.

I have a repo in /mnt/apps/repos and I would like to do a hook which will update/export everything to /mnt/apps/dev/repos folder but when running:

#/usr/bin/svn update /mnt/apps/dev/repos

I am getting error:

Skipped '/mnt/webapps/dev/repos'

when run

#usr/bin/svn export /mnt/apps/dev/repos

I am getting:

svn: '/mnt/webapps/dev/repos' is not a working copy

how to add /mnt/webapps/dev/repos as a working copy for all files from repo DB?

please help

Upvotes: 0

Views: 131

Answers (1)

Sander Rijken
Sander Rijken

Reputation: 21615

You should use an URL format to specify your repository, either http://, https://, svn://, svn+ssh:// or file://

The repository is the database for all your versions, so you cannot update it. You probably want to check out a working copy.

svn checkout file:///mnt/webapps/dev/repos /home/user/workingcopy

Please note that:

  • usually you don't check out the root of the repository, it's common to have a /project/trunk layout inside.
  • it's advisable to use http(s):// or svn(+ssh):// when using the repository with multiple people for security reasons. It's better to have a server daemon in front of the repository than to allow everyone read/write access to it.
  • if /mnt indicates that you mounted a network share with the repository on it, don't do it that way, go with a server instead

Check out the free svnbook for more details

Upvotes: 1

Related Questions