we are currently pushing out osc version 0.116. Beside some eagerly wanted bugfixes it provides some new commands to handle version source links more easily.
Source links can point to a certain revision of source package. This is not the default, because the usual use case when you prepare submissions for other projects should show new upcoming conflicts.
However in other use cases you might want to control when to upgrade to a newer revision. This is esp. the case when you use the OBS for release management.
Here are some examples how to use it:
Create a new source link with the new --current argument:
# osc linkpac --current openSUSE:Factory osc openSUSE:Tools
This means that osc checks now what is the current revision in Factory and refers to exactly this version (you see a rev="X" attribute in the _link file). The effect is that a change in openSUSE:Factory has no effect in openSUSE:Tools.
At some later point of time you might want to update to the current version again. The easiest way to do this is to use the new "setlinkrev" command. You can do this either via
osc co openSUSE:Tools osc cd openSUSE:Tools/osc osc setlinkrev
or call directly
osc setlinkrev openSUSE:Tools osc