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
Resolution
More like this
- Locking an SVN repository (or, another reason to use Git)
- Using Drush to install or update to a particular tagged release of a module
- Checkout a specific revision of a file with Git
- Moving a site from an old version control set-up using SVN to Agaric's new Git-Capistrano glory
- @TODO Drupal core improvement bring back settings.php


Comments
Post new comment