svn
Change the location of an SVN repository for the working copy
Change repository
svn switch --relocate http://old.example.com/svn/pdonline http://svn.new.example.com/svn/pdonline
Locking an SVN repository (or, another reason to use Git)
The manual: http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
The useful info: http://marc.info/?l=subversion-users&m=117814302607694&w=2
cd /repos/path/of/interest
find . -type f -exec svn lock '{}' ';'And when done:
find . -type f -exec svn lock '{}' ';'Bringing SVN to a particular revision; useful with DBScripts
Checkout into a new directory:
svn checkout -r 1310 http://svn.repositoryurl.example.com/path/to/repos newlocalfolder
# Checks out a new working copy at r1310Or update a working copy to a given revision number:
cd local-folder-for-repo
svn update -r 1310
# Updates an existing working copy to r1310Upgrade Subversion on Mac OS X using MacPorts
Disclaimer: I have no idea if this is the best or cleanest way to replace the svn used by Mac OS X, but it's what worked.
(I did not use this way, "Upgrade subversion client on mac osx," gridshore.nl/2008/12/21/upgrade-subversion-client-on-mac-osx/ )
Instead, I used MacPorts:
Change the SVN branch your repository checkout is using
As shown here http://svnbook.red-bean.com/en/1.4/svn.branchmerge.switchwc.html
it is simply the svn switch statement with the path to the respository (which in our case was at svn://example.com...)
svn switch http://svn.example.com/repos/calc/branches/my-calc-branch
svn cancel added file
svn revert file.txt
http://www.sds-project.fr/howto/doku.php?id=collaborative_work:svn_user_...
Confirming a merge as non-destructive
It worked this time, anyway. Reviewed the diff (for two different revisions? brain/memory not working), and then when it appeared none of the changes conflicted, ran the subversion update.
-bash-3.00$ svn diff sites/default/modules/change_agents/user_profiles/user_profiles.module
Index: sites/default/modules/change_agents/user_profiles/user_profiles.module
How to add users to or edit user passwords for a Subversion repository
add new users to an svn repository:
sudo vi svnrepo/conf/passwd
Adding a new version of Drupal core to Agaric's Piston-enabled deployment system
cd /RCS/agaric/drupal-core/
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -r DRUPAL-6-3 -d drupal-6 drupal
sudo svn add drupal-6
sudo svn commit -m "Drupal 6"drupal-6 and DRUPAL-6-3 need to be replaced with the major release and point release that you are dealing with (though with luck we'll have moved from CVS soon and this will all be moot).
Using Subversion's "include" functionality– the svn:externals property
DEPRECATED: Use Piston
In this case we're using svn externals to have a module in two places in a repository, but of course it works just as well for a truly external repository.
