Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osc-plugins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpcdf
obs
osc-plugins
Commits
e0618d8f
Commit
e0618d8f
authored
5 years ago
by
Lorenz Hüdepohl
Browse files
Options
Downloads
Patches
Plain Diff
Support home: sub-projects for mpcdf_push
parent
9832a66b
No related branches found
No related tags found
No related merge requests found
Pipeline
#76362
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mpcdf_branch.py
+9
-4
9 additions, 4 deletions
mpcdf_branch.py
with
9 additions
and
4 deletions
mpcdf_branch.py
+
9
−
4
View file @
e0618d8f
...
...
@@ -16,19 +16,24 @@ def do_mpcdf_branch(self, subcmd, opts, *args):
all required meta-data for the enabled repositories.
Usage:
osc mpcdf_branch PACKAGE
osc mpcdf_branch PACKAGE
[home:$USER]
${cmd_option_list}
"""
apiurl
=
self
.
get_api_url
()
target_project
=
"
home:
"
+
osc
.
conf
.
get_apiurl_usr
(
apiurl
)
if
len
(
args
)
==
0
:
raise
osc
.
oscerr
.
WrongArgs
(
"
Missing argument: PACKAGENAME
"
)
if
len
(
args
)
>
1
:
elif
len
(
args
)
==
1
:
package
,
=
args
target_project
=
"
home:
"
+
osc
.
conf
.
get_apiurl_usr
(
apiurl
)
elif
len
(
args
)
==
2
:
package
,
target_project
=
args
if
not
target_project
.
startswith
(
"
home:
"
):
# + osc.conf.get_apiurl_usr(apiurl)):
raise
osc
.
oscerr
.
WrongArgs
(
"
Target must be a home project
"
)
if
len
(
args
)
>
2
:
raise
osc
.
oscerr
.
WrongArgs
(
"
Too many arguments
"
)
package
,
=
args
mpcdf_common
.
sync_projects
(
apiurl
,
package
=
package
,
from_project
=
"
software
"
,
to_projects
=
(
target_project
,),
add_to_maintainers
=
False
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment