allow setting --svnsync option to "always on" in drush config or svnsync as own command?

frankcarey - June 17, 2009 - 01:06
Project:Drush
Version:All-Versions-2.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I can't figure out how i can set --svnsync to always on when i do "drush updatecode", either by the config file alone or how one would add the option to the code. I looked through the code for the existing option... --version? ... but didn't know here you'd put this option.

This usability issue is when you forget it, you can't do a subsequent call to" drush updatecode --svnsync" to get the --svnsync to kick in because there isn't any code to update anymore, so you have to revert, then redo it... maybe svn sync as it's own command (even for non-backups) would be sweet?

#1

dman - July 29, 2009 - 03:47

I think you make your own file called ~/.drushrc.php

<?php
$options
['package-handler'] = 'svn';
?>

or inspect, copy and use the example one example.drushrc.php by following the instructions there.

Works great for me as I do everything via cvs and dl goes good.
Is that the question? Or is updatecode something else? I may be confused

#2

Owen Barton - July 29, 2009 - 04:46
Status:active» fixed

Actually you want:

$options['svnsync'] = 1;

#3

System Message - August 12, 2009 - 04:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.