Skip to content

Instantly share code, notes, and snippets.

@arispublic
arispublic / svn-revert-commit-to-prev-version.sh
Last active August 29, 2015 14:17
In Subversion, sometimes our commit is not valid/broken. We want to revert the code to previous revision. Here are the steps.
//test mode
svn merge --dry-run -r:73:68 http://my.repository.com/my/project/trunk
//merge to previous
svn merge -r:73:68 http://my.repository.com/my/project/trunk
//commit the changes.
svn commit -m "Reverted to revision 68."
@arispublic
arispublic / drush-rebuild-perms.sh
Last active August 29, 2015 14:17
Drupal: Rebuild permissions on all sites
drush @sites php-eval 'node_access_rebuild();' -y
//Undo Commit:
svn merge -r COMMITTED:PREV .
//Revert Merge
svn revert -R .
//Revert to older revision:
svn update -r <earlier_revision_number>