1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02:00
Commit Graph

750 Commits

Author SHA1 Message Date
Marcus Huewe
4a19faadf3 - Package class: moved validation code into a new method "validate"
- do_commit: call validate before asking the user for a commit msg
- Project class: added new validate_pacs method
- minor fixes here and there
2010-09-09 12:30:49 +02:00
Marcus Huewe
9ad14a1d9c - added new "repairwc" command which tries to repair an inconsistent working copy 2010-09-08 18:56:15 +02:00
d69bd68ea3 add "review" and "superseded" as known request states. 2010-09-07 17:31:28 +02:00
Marcus Huewe
5b25135dea - enable cpio bulk download by default
- removed option --cpio-bulk-download
- added new option --disable-cpio-bulk-download (to disable the default cpio
  bulk download)
2010-09-07 16:08:05 +02:00
36c0245e80 fix usage of linkrev in show_xsrcmd5 function.
make usage of linkrev=base options in setlinkrev.
2010-09-07 15:03:01 +02:00
492edaa794 Go one step further with setlinkrev, use always xsrcmd5, even when given a normal revsion, except "-R" option is used. 2010-09-07 12:14:13 +02:00
Marcus Huewe
5e72fa1284 - fixed "osc addremove": use delete_file(), initialize pac.todo correctly
- added new testcase
2010-09-06 15:28:23 +02:00
Marcus Huewe
89c9cb67f4 - renamed limit_size to size_limit (only internal variable changes)
- added new method "get_files_meta" to the Package class (which handles
  the the "skip file and service stuff")
2010-09-03 14:51:20 +02:00
Marcus Huewe
94eb143d8c - small fixes for do_status and get_diff
- get_diff:
  * more helpful error message if a file was added and the local
    file was removed again
  * unify self.filenamelist and self.to_be_added if self.todo is empty
  * extended testcases
- do_status: be able to run "osc st <nonexistentfile>"
2010-09-02 13:47:42 +02:00
e5016d0f64 support OBS 2.1 request diff 2010-09-02 10:30:13 +02:00
Marcus Huewe
109e199445 - filter Cookie, Authentication and Set-Cookie headers when using "osc -H..."
to enable full debug use "osc --http-full-debug". The current implementation
is _really_ ugly but httplib doesn't use a logger object or such...
2010-09-01 15:38:08 +02:00
11d81fe776 initial service command for running source services remote or locally 2010-09-01 12:44:47 +02:00
Marcus Huewe
8bd4e4eddf - fixed #514280 ("osc help text (0.119)") 2010-08-31 18:42:52 +02:00
Marcus Huewe
c4ceb7f700 - adjusted store_write_string calls so that the storefile ends with a newline
- adjusted testcase fixtures for this change
2010-08-31 13:30:37 +02:00
Marcus Huewe
c8e849b391 - fixed importsrcpkg 2010-08-31 13:30:37 +02:00
Marcus Huewe
2ffd46a9c2 - get rid of the init_package_dir mess
moved code into the staticmethod "init_package" of the Package class.
Cleaned up "checkout_package"
2010-08-31 13:30:37 +02:00
Marcus Huewe
ca61d08bf3 - added new "get_diff" method to the Package class
- restructured "get_source_file_diff"
- commandline.py: adapted commands so that they use the new "get_diff" method
2010-08-31 13:30:36 +02:00
Marcus Huewe
80bf280d8b - removed hack for #399247 - there's nothing special when expanding/unexpanding links 2010-08-31 13:30:36 +02:00
Marcus Huewe
d5e4a81e8f - addremove: don't remove storefile 2010-08-31 13:30:36 +02:00
Marcus Huewe
b3d638774c - do_revert: initial version 2010-08-31 13:30:35 +02:00
Marcus Huewe
8307a7063f - fixed "do_results" 2010-08-30 16:28:10 +02:00
Marcus Huewe
d5c91babc1 - "osc build --keep-pkgs dir": create dir if it does not exist 2010-08-26 18:50:20 +02:00
Marcus Huewe
46c4f1e1d5 - simplify 2010-08-23 10:08:09 +02:00
JF Ding
c61e4a514e vc: to support meego changelog style if detected
need "vc" command shipped with meego-packaging-tools
2010-08-23 09:58:13 +02:00
Danny Kukawka
5a49daa69a fix warnings from pychecker
Fixed several warnings from pychecker as e.g.:
- (XY): shadows builtin
- Local variable (XY) not used
2010-08-20 14:34:41 +02:00
Danny Kukawka
abce7cd8fc use correct the user (depending on the apiurl)
Use correct the user (depending on the apiurl) as done in commit
c93baf1f58.
2010-08-20 13:25:32 +02:00
Danny Kukawka
72eae319b8 removed whitespace in help text 2010-08-20 13:23:23 +02:00
Marcus Huewe
eeb05059ec - fixed commit 2ae9a9453a 2010-08-19 13:43:48 +02:00
Danny Kukawka
50f6ba67ea changed 'osc request revoke' to prevent set same state twice
Changed 'osc request {reopen,accept,decline,wipe,revoke}' to check
the current state and ask the user if the requested state is the
same as the current state of the request. This should prevent e.g.
useless state changes (set to revoke multiple times in a row) by
accident.
2010-08-18 17:58:42 +02:00
Danny Kukawka
d2b9015d8f small typo fix 2010-08-18 16:20:24 +02:00
Danny Kukawka
2aede1039f changed change_request_state() to return only the status code
Changed change_request_state() to return only the status code,
print out some more usable message for result of change_request_state()
where needed.
2010-08-18 16:17:34 +02:00
Marcus Huewe
c93baf1f58 - use correct the user (depending on the apiurl) 2010-08-18 12:40:43 +02:00
Danny Kukawka
6380c91d0f removed left over debug messages 2010-08-18 11:46:57 +02:00
Danny Kukawka
1477193694 added 'osc reqmaintainership'
Added 'osc reqmaintainership' as shortcut for
'osc creq -a add_role USER maintainer PROJECT PACKAGE' since this
command is hard to find for (new) users.

Works also from checked out packages. If no user is specified,
the command takes the current osc user from the config.
2010-08-18 11:42:50 +02:00
Marcus Huewe
e209766084 - renamed "RuntimeError" to "ExtRuntimeError" to avoid confusion with python's "RuntimeError" class
just a "cosmetic" changes
2010-08-16 16:27:00 +02:00
Ludwig Nussel
08f12721fe another rq fix 2010-08-13 09:51:32 +02:00
Ludwig Nussel
ef7a82fe97 fix osc rq 2010-08-13 09:43:32 +02:00
Ludwig Nussel
fb7911ea86 fix sr -d again 2010-08-13 08:58:27 +02:00
Juergen Weigert
b3fb8b51fb tabs to spaces. Damit kein Unglueck nicht geschicht. Hello Danny. 2010-08-13 00:30:05 +02:00
Juergen Weigert
ac3bbf9bc7 fixed and simplified result sorting expression in osc search 2010-08-13 00:07:59 +02:00
Marcus Huewe
cbebe3b239 - treat "no_verify" as a boolean 2010-08-12 23:13:51 +02:00
Juergen Weigert
5fe669b15b allow no_verify also in .oscrc 2010-08-12 21:34:08 +02:00
Juergen Weigert
c23002c953 osc search now returns sorted by proj and pack,
not just by proj with random pack order.
2010-08-12 20:23:28 +02:00
Juergen Weigert
1b38b8c338 osc search now returns sorted by project, and sorted by package,
not just sorted projects and random package order.
2010-08-12 20:21:04 +02:00
Marcus Huewe
598a458718 - fixed #613513 ("osc copypac to another OBS instance fails if source package uses links")
now links are always expanded if we copy across different buildservice instances
2010-08-11 22:42:16 +02:00
Marcus Huewe
e29b227b5b - do_status: added '--show-excluded' option to show all files (except the store dir)
Additionally "osc st" doesn't show dirs anymore if it's called from
a package wc because dirs cannot be added to a package
2010-08-11 18:05:12 +02:00
e0172293df check the right options for request and review command 2010-08-10 16:36:29 +02:00
Marcus Huewe
eada1234a9 - do_signkey: don't modify list during iteration 2010-08-08 23:45:04 +02:00
Marcus Huewe
b213b9695b - a more generic version of ebd4b1d893 (the same logic applies to *.dsc, *.kiwi) 2010-08-08 23:15:25 +02:00
1244308d47 "osc sr" used for an entire project is now offering also to supersed requests
when they got cloned by checking the attribute.

It does not work from package dir atm, this entire behaviour is not a good design.
But I lack a good idea how to design it better atm.
2010-08-05 17:00:45 +02:00