[opensuse-buildservice] Setting up "branches" projects so they are not deleted after SRs are accepted

Hi guys, I remember someone describing how to do this on the list, but I cannot find it for the life of me. I think there was a way to keep "branches"-subprojects, that are automatically created by OBS when doing "osc branch foo/bar". But they are also deleted when the only package in there is being submitted and the SR is accepted. Am I remembering this right? Is there a way to achieve that? Or is my memory playing tricks on me? Kind Regards Johannes

On 2018-04-25 21:42:20 +0200, Johannes Kastl wrote:
I think there was a way to keep "branches"-subprojects, that are automatically created by OBS when doing "osc branch foo/bar". But they are also deleted when the only package in there is being submitted and the SR is accepted.
It depends on how you create the SR (by default, the branch is deleted). You are probably looking for "osc sr --no-cleanup" (or maybe "--no-update" (for the details, see "osc sr --help")). There is also a "submitrequest_on_accept_action" config option. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Hi Marcus, On 25.04.18 22:32 Marcus Hüwe wrote:
It depends on how you create the SR (by default, the branch is deleted). You are probably looking for "osc sr --no-cleanup" (or maybe "--no-update" (for the details, see "osc sr --help")). There is also a "submitrequest_on_accept_action" config option.
Thanks for the tips. I had some setting made in the OBS project in the back of my mind. Kind Regards, Johannes

On Mittwoch, 25. April 2018, 21:42:20 CEST wrote Johannes Kastl:
Hi guys,
I remember someone describing how to do this on the list, but I cannot find it for the life of me.
I think there was a way to keep "branches"-subprojects, that are automatically created by OBS when doing "osc branch foo/bar". But they are also deleted when the only package in there is being submitted and the SR is accepted.
Am I remembering this right? Is there a way to achieve that? Or is my memory playing tricks on me?
osc sr --no-cleanup when creating a submitrequest. There is also the OBS:AutoCleanup attribute created by default in default branch projects. This leads to a delete request with auto-accept after some time. How you can still delete the attribute or just decline the delete request later. -- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Hi Adrian, On 26.04.18 08:18 Adrian Schröter wrote:
osc sr --no-cleanup when creating a submitrequest.
Thanks for the hint.
There is also the OBS:AutoCleanup attribute created by default in default branch projects. This leads to a delete request with auto-accept after some time. How you can still delete the attribute or just decline the delete request later.
Yes, I know that, but this was not what I meant. In the meantime I was told that you can also branch packages to other projects (outside the home:foobar:branches-Namespace), so create the project first, then branch the package there. Then the project should not be touched. I'll try all of the suggestions. Thanks guys! Kind Regards, Johannes

On Apr 30 2018, Johannes Kastl <mail@ojkastl.de> wrote:
In the meantime I was told that you can also branch packages to other projects (outside the home:foobar:branches-Namespace), so create the project first, then branch the package there.
osc branch also accepts a project name as a target, which is created if it doesn't exist, so you don't need to manually create the project beforehand. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On 30.04.18 12:20 Andreas Schwab wrote:
On Apr 30 2018, Johannes Kastl <mail@ojkastl.de> wrote:
In the meantime I was told that you can also branch packages to other projects (outside the home:foobar:branches-Namespace), so create the project first, then branch the package there.
osc branch also accepts a project name as a target, which is created if it doesn't exist, so you don't need to manually create the project beforehand.
But then I guess I am were I started, and the project will be removed once the SR is accepted? I'll try this next time... Johannes

On Apr 30 2018, Johannes Kastl <mail@ojkastl.de> wrote:
On 30.04.18 12:20 Andreas Schwab wrote:
On Apr 30 2018, Johannes Kastl <mail@ojkastl.de> wrote:
In the meantime I was told that you can also branch packages to other projects (outside the home:foobar:branches-Namespace), so create the project first, then branch the package there.
osc branch also accepts a project name as a target, which is created if it doesn't exist, so you don't need to manually create the project beforehand.
But then I guess I am were I started, and the project will be removed once the SR is accepted?
Only if you name the project like home:*:branches:*, or if you use osc sr --cleanup. How the project was created is irrelevant. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (4)
-
Adrian Schröter
-
Andreas Schwab
-
Johannes Kastl
-
Marcus Hüwe