Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osc staging: possibility to merge two staging projects #1105

Closed
DimStar77 opened this issue Aug 28, 2017 · 3 comments · Fixed by #2696
Closed

osc staging: possibility to merge two staging projects #1105

DimStar77 opened this issue Aug 28, 2017 · 3 comments · Fixed by #2696

Comments

@DimStar77
Copy link
Contributor

Every now and then, it would be handy to be able to 'merge' two staging projects (more commonly on adi, but sometimes also on letter stagings)

maybe any of our overly complex syntax options already does it - but I could not work out a set :)

Something like: osc staging merge adi:25 adi:65 -> move all packages from adi:25 to adi:65

(currently I do this using a shell function:

adimerge () 
{ 
    osc ls openSUSE:Factory:Staging:adi:$1 | xargs osc staging select --move openSUSE:Factory:Staging:adi:$2
}

)

@jberry-suse
Copy link
Contributor

Overly complex eh? The closest proposal is #731, but I remember discussing this idea before as it is seemingly common and useful.

@DimStar77
Copy link
Contributor Author

Just for the record - over time I have improved my adimerge command, as the original one did not cope with multi-spec packages.

Currently, I use:

adimerge is a function
adimerge () 
{ 
    osc review list openSUSE:Factory -P openSUSE:Factory:Staging:adi:$1 | awk '/State:review/ {print $1}' | xargs osc staging select --move openSUSE:Factory:Staging:adi:$2
}

@coolo
Copy link
Member

coolo commented Feb 15, 2022

That's actually pretty close to what I would have suggested. osc staging select --move adi:24 adi:25 - and teach the request finder to look into staged requests.

coolo added a commit to coolo/osc-plugin-factory that referenced this issue Feb 15, 2022
osc staging select --move adi:26 adi:14

If move is given, all staging projects given after the first will
be seen as source

Fixes openSUSE#1105
coolo added a commit to coolo/osc-plugin-factory that referenced this issue Feb 15, 2022
osc staging select --move adi:26 adi:14

If move is given, all staging projects given after the first will
be seen as source

Fixes openSUSE#1105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants