svn copy <a href="file:///relative/path/to/trunk/" >file:///relative/path/to/trunk/</a> <a href="file:///relative/path/to/branch/<BRANCH" >file:///relative/path/to/branch/<BRANCH</a> NAME> -m "SVN MESSAGE"
Tag Archive for subversion
Creating a new branch in SVN
Subversion export with PHP Script
//http://th.php.net/manual/en/function.svn-export.php <?php $working_dir = '../'; $new_working_dir = '/home/user/devel/foo/trunk'; svn_export($working_dir, $new_working_dir); ?>
Simple SVN checkout using PHP
// <a href="http://www.fordnox.com/blog/2008/11/simple-svn-checkout-using-php/" >http://www.fordnox.com/blog/2008/11/simple-svn-checkout-using-php/</a>
$username = "username";
$password = "password";
$repository = "http://google-web-toolkit.googlecode.com/svn/trunk/";
$destination = ‘your/full/path’;
$checkout = "svn export –force –username $username –password $password $repository $destination";
$result = _exec($checkout);
function _exec($cmd)
{
if (substr(php_uname(), 0, 7) == "Windows") {
pclose(popen("start /B ". $cmd, "r"));
} else {
exec($cmd . " > /dev/null &");
}
}
Import a new repo into subversion
mkdir trunk tags branches mv "project-files" trunk/ svn import svn+ssh://svn.wincent.com/project-name
Ordner rekursiv löschen
find . -name .svn -print0 | xargs -0 rm -rf
How to update your working copy when the repository location changes
svn switch --relocate <a href="svn://old_url/subversion-repository" >svn://old_url/subversion-repository</a> <a href="svn://new_url/subversion-repository
" >svn://new_url/subversion-repository
source
Subversion Inconsistent line ending style error message
sudo port install dos2unix find . -name *.html | xargs dos2unix
Version all unversioned files in an SVN checkout
for i in `svn status | awk '{if ($1 == "?") print $2}'`; do svn add $i; done
Remove .svn Directorys
#!/bin/bash find . -name .svn -print0 | xargs -0 rm -rf zenity --info --text "Done."
Recursive svn:ignore
# Create an ignores file in your project's root directory touch svnignores.txt # Edit the ignores file *.pyc ._* build etc # Copy the svnignores.txt file into the svn:ignores information # for this directory and all contained directories recursively svn -R propset svn:ignore -F svnignores.txt .