Am Montag 15 November 2010 schrieb Dominique Leuenberger a.k.a DimStar:
Quoting Tejas Guruswamy
: On 15/11/10 00:22, Paul Elliott wrote:
What is the proper command to go back one version?
Thank You.
You can use "osc up -r" (read osc help up) to update to a specific revision of a package.
Well, that counts for local. But if you actually want to have this revision to be 'current' again (like revert a commit), you will have to:
osc co $prj $package -r $rev mkdir backup; mv $prj/$package/* backup osc up $prj $package mv backup/* $prj/$package osc ci $prj/$package -m "Revert to rev ^"
A slightly nicer way for this procedure might not be too wrong to have. (to have in the code base or, if it already is, in the documentation :) )
osc sr -r $rev $prj $package $prj -m "revert to $rev"
osc sr accept