|Version 2 (modified by k0s, 6 years ago) (diff)|
front-end to svnsyncing a remote svn repo
trac does not provide an out-of-the-box solution for svn repositories that don't reside on the same server as trac. SvnsyncPlugin provides a front-end to aid in the creation of a svnsync-ed repository locally. This requires svn 1.4 to be installed locally (including the svnsync command on the $PATH).
This plugin is still a beta and is not as automated as could be. Also, svnsync is not 100% reliable -- for instance, it does not work as expected on edgewall's repositories. Like all holes, these can be patched if time and interest warrant.
If you have any issues, create a new ticket.
Download the zipped source from here.
In order to use this plugin, you must make some make some changes to the .ini file for your trac project. First, enable the plugin:
[components] svnsyncplugin.* = enabled
Make sure your repository type is set to svnsync:
[trac] repository_dir = /path/to/directory repository_type = svnsync
Note that repository_dir is used as the destination directory for the sync. You must also give the repository_url you wish to sync to:
[svn] repository_url = http://yoursvnserver.org/svn
The repository will be synced on each request. The first sync (to get all past version) will take some time. You can get around this by using the svnsync.py script [UNIX syntax shown]:
`python -c 'import svnsyncplugin, os; print os.path.dirname(svnsyncplugin.__file__)'`/svnsync.py --directory /path/to/directory --repository http://yoursvnserver.org/svn
-  by k0s on 2008-10-13 17:57:09
sanify logging, closes #3896; bumping version #
-  by k0s on 2008-09-25 15:51:33
convert command to a string. hopefully this fixes #3774 though honestly i dont understand the issue
-  by k0s on 2008-07-29 19:03:29
updates to generalize the svnsync plugin for windows (untested on windows); hopefully fixes #3361 ; cleanup; bump microversion to reflect change
Originally developed at The Open Planning Project