User login

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

Searched words: 
svn switch to revision id # subversion version checking out copy revision number

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.