Mailinglist Archive: opensuse-buildservice (272 mails)

< Previous Next >
Re: [opensuse-buildservice] How to revert to a previous revision?
  • From: "Dominique Leuenberger a.k.a DimStar" <dimstar@xxxxxxxxxxxx>
  • Date: Mon, 15 Nov 2010 08:21:03 +0100
  • Message-id: <20101115082103.16432kgtl3iq358g@xxxxxxxxxxxxxxxxxxxxxxx>
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 :) )

Dominique

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

< Previous Next >
Follow Ups