Staging: add 'rebase' as an alias to the 'freeze' command
Fixes issue #1947
This commit is contained in:
parent
2c4d242c05
commit
97b7d66ffd
@ -92,7 +92,9 @@ are:
|
||||
|
||||
* *cleanup_rings* Check the status of the different rings in Factory.
|
||||
|
||||
* *freeze* Freeze the packages that are not affected in a staging project.
|
||||
* *rebase* Freeze the packages that are not affected in a staging project.
|
||||
In the past, this command used to be called 'freeze', which is still
|
||||
a valid alias.
|
||||
|
||||
* *list* Accept all the requests from packages that are not in any
|
||||
ring, detect request that supersede the current ones that are
|
||||
@ -230,7 +232,7 @@ This command is used to check the current status of the rings and to
|
||||
find undesirable dependencies of the packages that conform the rings.
|
||||
|
||||
|
||||
Freeze
|
||||
Rebase
|
||||
~~~~~~
|
||||
|
||||
Factory (or the subset MinimalX) is always a moving target, even with
|
||||
|
@ -141,8 +141,8 @@ def do_staging(self, subcmd, opts, *args):
|
||||
"cleanup_rings" will try to cleanup rings content and print
|
||||
out problems
|
||||
|
||||
"freeze" will freeze the sources of the project's links while not
|
||||
affecting the source packages
|
||||
"rebase" (or "freeze") will freeze the sources of the project's links while
|
||||
not affecting the source packages
|
||||
|
||||
"frozenage" will show when the respective staging project was last frozen
|
||||
|
||||
@ -298,7 +298,7 @@ def do_staging(self, subcmd, opts, *args):
|
||||
osc staging check_duplicate_binaries
|
||||
osc staging check_local_links
|
||||
osc staging cleanup_rings
|
||||
osc staging freeze [--no-bootstrap] STAGING...
|
||||
osc staging rebase|freeze [--no-bootstrap] STAGING...
|
||||
osc staging frozenage [STAGING...]
|
||||
osc staging ignore [-m MESSAGE] REQUEST...
|
||||
osc staging unignore [--cleanup] [REQUEST...|all]
|
||||
@ -340,6 +340,7 @@ def do_staging(self, subcmd, opts, *args):
|
||||
min_args, max_args = 0, None
|
||||
elif cmd in (
|
||||
'freeze',
|
||||
'rebase',
|
||||
'setprio',
|
||||
'ignore',
|
||||
):
|
||||
@ -408,7 +409,7 @@ def do_staging(self, subcmd, opts, *args):
|
||||
CheckDuplicateBinariesCommand(api).perform(opts.save)
|
||||
elif cmd == 'check_local_links':
|
||||
AcceptCommand(api).check_local_links()
|
||||
elif cmd == 'freeze':
|
||||
elif cmd == 'freeze' or cmd == 'rebase':
|
||||
for prj in args[1:]:
|
||||
prj = api.prj_from_short(prj)
|
||||
print(Fore.YELLOW + prj)
|
||||
|
Loading…
x
Reference in New Issue
Block a user