User login

svn

Setting up a fresh Drupal installation from the Agaric repository.

For a new version of Drupal

From a computer with a local checkout of the subversion repository:

cd ~/workspace/repos/agaric/drupal-core/
wget http://ftp.drupal.org/files/projects/drupal-5.5.tar.gz
tar -xzf drupal-5.5.tar.gz
rm drupal-5.5.tar.gz
svn add drupal-5.5
svn commit -m "latest and greatest Drupal"

Drush subversion integration: svn add and svn commit following pm install

Posted to Drush issue queue:

Here's Agaric's workflow (ignore the lack of a link to Drush's path, we have too many Drupal installations to make that practical at the moment):

cd /var/www/drupal-5_3-live/sites/all/modules/
sudo php drush/drush.php -l http://example.com pm install fasttoggle
sudo svn add fasttoggle
sudo svn commit -m "Installed fasttoggle via Drush"

Grep multiple files but exclude .svn (subversion) directories

The --exclude flag described below does not work.

This does:

grep -nHR 'needle' . | grep -v svn
from http://episteme.arstechnica.com/eve/forums/a/tpc/f/6330927813/m/902005657831

grep exclude .svn

Setting $GREP_OPTIONS in ~/.bashrc like this did the trick
export GREP_OPTIONS="--exclude="\*/.svn/\*"

The --exclude flag described below does not work.

This does:

grep -nHR 'needle' . | grep -v svn
from http://episteme.arstechnica.com/eve/forums/a/tpc/f/6330927813/m/902005657831

grep exclude .svn

<

blockquote>
Setting $GREP_OPTIONS in ~/.bashrc like this did the trick
export GREP_OPTIONS="--exclude="*/.svn/*"

Undo that SVN add

In Subversion, to cancel an svn add example_folder command before committing to the repository, do not use svn delete or svn remove or made-up stuff like undo or cancel.

Use the svn revert command:

svn revert --recursive example_folder

And all will be well.

Update: Commenter says this can lose local changes. Not sure about that, but my use case was indeed to get rid of everything so i didn't care. And i'm on Git now.

Syndicate content