Stephan Kulow
f86579642b
Target E501 - Line too long
...
https://www.flake8rules.com/rules/E501.html - but 79 characters is a
joke
2022-02-18 18:17:27 +01:00
Stephan Kulow
d8f5d0874e
Remove E201 - Whitespace after '('
...
https://www.flake8rules.com/rules/E201.html
2022-02-18 17:23:19 +01:00
Stephan Kulow
54079e949f
Target E202 - Whitespace before ')'
...
https://www.flake8rules.com/rules/E202.html
2022-02-18 17:18:29 +01:00
Stephan Kulow
e52dc6ce2b
Harmonize imports on using lxml for XML parsing
2022-02-18 11:16:01 +01:00
Stephan Kulow
dafa42d3df
Support to move one staging into another
...
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 #1105
2022-02-15 15:00:14 +01:00
Stephan Kulow
cf2c496116
Introduce --remove-exclusion for staging select
...
The API errors with that option if a request is ignored, so we have to
support it.
Fixes #2374
2022-02-14 13:59:42 +01:00
Stephan Kulow
ce9158abcc
Remove support for ring2
2019-12-05 16:52:05 +01:00
32ad0adc2d
Fix all E22x errors
...
This cleans up white spaces around various kinds of operators to be
consistent.
2019-11-27 11:08:06 +01:00
Stephan Kulow
90a843f9f7
Implement select --move by unselect+select
2019-11-25 17:09:39 +01:00
Stephan Kulow
18e8853bdd
Speedup select: Avoid supersede calculation if pointless
2019-11-20 17:05:10 +01:00
Stephan Kulow
82c64003c4
Adopt to the new staging_projects api not revealing all infos
2019-11-19 08:04:11 +01:00
Stephan Kulow
4921751ef2
Work on select command
2019-11-19 08:04:10 +01:00
082d37e36f
Improve error msg that the project was not frozen
...
This change is trying to provide user more information
in case that he already froze project but date of last
freeze was not updated, since there were no changes for
last MAX_FROZEN_AGE days.
* Use osclib.freeze_command.MAX_FROZEN_AGE constant
* Avoid explicit proposal of --no-freeze bug suggest alternative
2019-04-12 13:48:51 +02:00
Jimmy Berry
fa84030142
osclib/select: only check filter-from logic if argument was passed.
2018-10-29 16:00:09 -05:00
Jimmy Berry
ef9ff661bb
osc-staging: select: replace --from with --filter-from.
...
--from no longer serves a purpose since requests should never live in
more than one staging (apparent from linking).
2018-10-18 17:24:59 -05:00
Jimmy Berry
5a2cd2dc9a
osc-staging: handle select --move
cleanup of empty source project.
...
- handle build disable in select command just like comment instead of
stagingapi move_between_project() for consistency and to reduce double
checking the same information via extra API calls
- build_switch_staging_project() provides target_flag parameter rather
than trying to figure out flag value since caller has the context to
know and again reduces API calls
- build_switch_staging_project() checking conditions are essentially
checking if True is True since non-adi projects will always have ring
packages or rings disabled entirely. The condition of interest is
non-empty. Additionally adi projects are removed if empty so not a
terribly useful distinction to make.
- provide helper update_status_or_deactivate() to handle common logic
and replace in calling locations
2017-03-28 22:33:35 -05:00
Jimmy Berry
6e0f2165e0
Indicate select command progress.
2016-12-06 16:40:05 -06:00
5692ec1cc6
Use newcand param make sure don't select the processed requests
2016-07-19 15:32:52 +08:00
Ludwig Nussel
27fb22b504
Print out something when trying to select a dupliate request
2016-06-07 14:44:42 +02:00
Stephan Kulow
ab4349d634
don't freeze adi projects
2015-07-18 14:12:58 +02:00
Stephan Kulow
24fcd9cffd
fix previous change
2015-07-16 19:35:22 +02:00
Stephan Kulow
5de87f84e4
add adi command to create an ad interim staging prj for all non-ring packages
2015-07-16 15:09:26 +02:00
Alberto Planas
8308eaab14
Small changes for SLE integration.
2015-03-24 14:46:36 +01:00
74714d191c
In select command, if the fprj and target_project are the same, do not show the move option.
2014-09-10 17:32:27 +02:00
7d54c651ac
action #3556 - bug in staging select
2014-09-09 13:48:27 +02:00
a65f4d5844
Fix the from_project in select_command.
2014-08-21 17:31:07 +02:00
d17b24a4a4
Detect staged packages in a more robust way.
...
Instead of checking the review status of the request to detect
if a package is in a staging project, we use the staging API
knowledge about packages.
This fix the problem that happends when a staged request is
declined and reopened.
2014-08-14 17:28:35 +02:00
29b8bcca6b
Makes staging pluging Factory agnostic.
2014-08-07 12:58:47 +02:00
Stephan Kulow
9579595e72
remove sub packages on unselect
...
http://pastebin/10224
2014-06-17 13:57:19 +02:00
Ancor Gonzalez Sosa
507e50d633
Write only one comment per action
...
* For every 'select' or 'unselect' a single comment is written in
every affected project
* Previous automatic comments are deleted (as a first approach)
* For more info, see https://progress.opensuse.org/issues/2564
2014-06-04 16:54:21 +02:00
a3b4b44193
also be a hyperlink for move command
2014-05-26 19:12:29 +08:00
2066951053
replace type of request id from plain text to hyperlink
2014-05-26 18:57:56 +08:00
29a74d9a33
Adjust markdown text.
2014-05-20 17:15:28 +02:00
7f9207f26c
Group comments by user and operation in the select command.
2014-05-20 17:05:41 +02:00
f7058390cd
Replace with [at] and fix the select comment.
2014-05-20 15:08:21 +02:00
d3b95370ec
Scape markdown headline mark.
2014-05-20 14:56:57 +02:00
701fdfba6a
Replace @ with # to avoid spam for now.
2014-05-20 13:49:14 +02:00
9342132d50
Put in place where to remove comments. Comment it for now.
2014-05-20 13:45:59 +02:00
6e0322f699
Add comments in every operation.
2014-05-20 12:26:56 +02:00
Tomáš Chvátal
a085dbbf86
Print out what requests are we selecting where. Usefull for selecting huge sets to ensure nothing is blocked.
2014-04-17 22:18:06 +02:00
ca02624364
Do not use FreezeCommand? Do not import it.
2014-03-28 16:43:54 +01:00
Tomáš Chvátal
5da03f74b6
Do change project build state when removing packages properly. Progress issue#1783.
2014-03-24 15:15:47 +01:00
Tomáš Chvátal
93a3919db5
Add message when changing review state and set build properly when moving packages.
2014-03-21 19:25:22 +01:00
3988530799
Formalize the definition of supersede
2014-03-10 16:28:01 +01:00
f0eec2dcf8
Fix a tab
2014-03-10 11:25:10 +01:00
Stephan Kulow
c781643bad
revert the auto-freeze
...
there is reason the select command is not auto freezing - as documented
in https://progress.opensuse.org/issues/1517
2014-03-09 20:13:45 +01:00
Tomáš Chvátal
6eccef26c9
Check if p is int and remove whitespace.
2014-03-07 14:49:33 +01:00
Tomáš Chvátal
6e19c40bca
Make sure we pass the select tests again.
2014-03-06 18:29:15 +01:00
Tomas Chvatal
1cbb5cb32e
Enable build of staging only when there is some ring package. Add functions docu and fix some prints.
2014-03-06 18:23:07 +01:00
Tomáš Chvátal
eaa56d06e3
Merge branch 'master' of github.com:openSUSE/osc-plugin-factory
2014-03-06 16:32:50 +01:00