Tuesday, July 23, 2013

svn some commandlines switches


1. to preserve check-in date when checkout:

svn checkout --config-option config:miscellany:use-commit-times=yes

2. in jenkins, to check out several directories in different places:


Assuming you're using Subversion to checkout your projects, you need to specify the "Local module directory" to something other than the default for each path you are checking out.
For example;
If you have svn://myrepo/myproject/plugins and svn://myrepo/myproject/tests, the configuration would be along the lines of;
Modules:
Repository URL : svn://myrepo/myproject/plugins
Local module directory (optional) : plugins

Repository URL : svn://myrepo/myproject/tests
Local module directory (optional) : tests
This would then inform Jenkins that it has two paths to checkout and into separate locations.
If you are trying to checkout a project into the subfolder of another working copy, you may have to use svn:externals on the parent directory.
3. for svn error "svnsync failed to get lock on destination repos currently held by user ..." it had to delete the lock in order to make it work again "svn propdel --revprop -r0 svn:sync-lock file:///var/www/svn/repository-1 "

No comments:

Post a Comment