Posts Tagged ‘sync svn’

Use SVN Repo offline

Friday, January 11th, 2008

If you want to use your repository offline so that you can make some changes and commits in your hollidays then you can install svk. With svk you can mirror an existing svn repos to your local harddisk and it allows you to commit changes, to move files, to add new files and to delete files from the repository. After the hollidays you can push the changed data to the online repository to share the changes with other users.

First of all you have to check whether svk is already installed on your system or whether you have to install it.

(more…)

svnsync

Saturday, December 29th, 2007

Today you can find a lot of different descriptions on the internet how you can sync two svn servers. But most of them are too complex for my simple situation. Now I found a perfect solution on Paul’s blog.

Here is a short version:

  1. In the destRepo:
    $ echo "#!/bin/sh" > hooks/pre-revprop-change
    $ chmod 755 hooks/pre-revprop-change
  2. svnsync init {DEST_URL} {SRC_URL}
  3. svnsync sync {DEST_URL}

After I aborted the process the first time I get an error
Failed to get lock on destination repos, currently held by.
This problem is easy to fix, just release the lock on revision 0 with
svn propdel svn:sync-lock --revprop -r 0 {DEST_URL}

That’s it…..