I am currently using variations of the following command to update my modules and commit to svn.
# drush updatecode --version-control=svn --svnsync --svncommit
This is like a little miracle. I tear up every time I see these really informative success messages printed out to the terminal:
Project image_resize_filter was updated successfully. Installed version is now 6.x-1.6.
Project committed to Subversion successfully [ok]
Project views was updated successfully. Installed version is now 6.x-2.8.
Project committed to Subversion successfully [ok]
Unfortunately when I go to look over my SVN logs, every commit has the same generic and unhelpful message:
r94 | Drush automatic commit:
/Users/username/Sites/drush/drush.php updatecode --version-control=svn --svnsync --svncommit
r95 | Drush automatic commit:
/Users/username/Sites/drush/drush.php updatecode --version-control=svn --svnsync --svncommit
Does anyone know how I can pass those friendly terminal messages into the --svnmessage option to make the automatic commit messages more meaningful?
My goal is to have SVN logs read like:
r94 Project image_resize_filter was updated successfully. Installed version is now 6.x-1.6.
r95 Project views was updated successfully. Installed version is now 6.x-2.8.
Or even better (and more inline with our team message syntax) would be something like this:
r94 Updated image_resize_filter to version 6.x-1.6. [drush auto commit]
r95 Updated views to version 6.x-2.8. [drush auto commit]
Comments
Comment #1
moshe weitzman commentedHah. Wipe away those happy tears and give another look at the `drush help updatecode`. You will find the --svnmessage option.
Comment #2
moshe weitzman commentedIt would be interesting to be able to put your preferred svnmessage into drushrc.php that uses tokens from the system, like the revision that was downloaded.