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 r1310
Or update a working copy to a given revision number:
cd local-folder-for-repo
svn update -r 1310
# Updates an existing working copy to r1310
(Note: You cannot make changes and commit from an old checkout like these.)
Can be used with dbscripts
./dbscripts/restore.php production none
To have the database and code in synch.
Update
Actually, you can simply 'restore production none' to populate those tables with production's version, then you do a regular restore to update everything else to the dev version. That will populate your watchdog, search, user, etc, data from production.
./dbscripts/restore.php production none
./dbscripts/restore.php
Reference
http://svnbook.red-bean.com/en/1.5/svn-book.html
http://drupal.org/project/dbscripts
Comments
Post new comment