Mailinglist Archive: opensuse-buildservice (272 mails)

< Previous Next >
Re: [opensuse-buildservice] How to revert to a previous revision?
  • From: Stephan Kulow <coolo@xxxxxxx>
  • Date: Mon, 15 Nov 2010 10:10:39 +0100
  • Message-id: <201011151010.39746.coolo@xxxxxxx>
Am Montag 15 November 2010 schrieb Dominique Leuenberger a.k.a DimStar:
Quoting Tejas Guruswamy <masterpatricko@xxxxxxxxx>:
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 <id_given>
osc up

Greetings, Stephan
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >