1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00
Commit Graph

1141 Commits

Author SHA1 Message Date
Juergen Weigert
83cadd7157 'osc rq list' now defaults to 'new,review' instead of only 'new'.
Usage now mentions 'review' too.
2011-02-22 19:13:59 +01:00
Marcus Huewe
f06b39fb40 - use get/set when working with an "Element" instance (instead of using the "attrib" dict) 2011-02-22 17:53:58 +01:00
Marcus Huewe
3f54237a7c - rewrote set_link_rev 2011-02-22 17:53:58 +01:00
70797b5593 Don't submit crud workarounds for problems which should be fixed on the other side.
Revert "avoid 404 in osc se -V caused by looking up the _history of nonexistant"

This reverts commit d7a1428d69.
2011-02-21 13:41:02 +01:00
Juergen Weigert
d7a1428d69 avoid 404 in osc se -V caused by looking up the _history of nonexistant
packages. Workaround for BNC#673654
2011-02-21 00:26:54 +01:00
Marcus Huewe
a8fff94077 - minor cleanup 2011-02-17 14:22:16 +01:00
Marcus Huewe
da0e4bae30 - fixed do_service 2011-02-17 01:57:53 +01:00
Marcus Huewe
e493771454 - do_results: fixed --xml output 2011-02-17 01:31:04 +01:00
f0690d4e2f - make it possible to run single source services, even when not specified in _service file.
(For example for doing a version update without creating a _service file: osc service lr update_source)
2011-02-15 09:41:03 +01:00
380f41b9a4 - avoid to create a _pull file when having a working copy (or the user runs in a dead end,
since we don't support pull on pulled sources, what is actually another bug)
2011-02-14 12:26:51 +01:00
Marcus Huewe
fa5e07f792 - do_detachbranch: added --message option; added some more error handling 2011-02-11 17:38:59 +01:00
Marcus Huewe
b318ec1698 - added new "detachbranch" command to replace a link/branch with its expanded sources 2011-02-11 17:12:35 +01:00
0bf76163ed - add request and review "supersede" command, to supersede by an existsing request 2011-02-11 16:12:38 +01:00
Juergen Weigert
36007fb538 fixed se -V to not explode when a project match was found. 2011-02-11 15:11:50 +01:00
Marcus Huewe
5cb8468f3b - don't fail if terminal encoding doesn't support unicode (fixes #660445)
- added util.safewriter.SafeWriter class
2011-02-11 02:45:13 +01:00
Marcus Huewe
8fc0a4e94b - fix for 7d5893992d 2011-02-09 15:53:36 +01:00
Marcus Huewe
7d5893992d - use Request's __cmd__ method for sorting 2011-02-09 15:51:26 +01:00
Ludwig Nussel
69458ca8c4 sort request lists by id 2011-02-09 14:57:33 +01:00
Marcus Huewe
09cee2a9f0 - fixed misleading note (#644550 ("osc don't branch particular project")) 2011-02-08 17:09:48 +01:00
55f580f988 add force option to accept requests in review state. 2011-02-08 16:16:18 +01:00
Ludwig Nussel
75b662534f fix osc my with obs 2.2 api 2011-02-04 10:35:02 +01:00
Ludwig Nussel
ba3bed8ecc only catch http error, other exceptions are bugs 2011-02-04 10:35:02 +01:00
Ludwig Nussel
99ce83352c fix indent 2011-02-04 10:35:02 +01:00
Ludwig Nussel
dd8b3ee681 Don't request message when branching a package 2011-02-03 14:25:20 +01:00
Marcus Huewe
f18b4d6a36 - fix for 0fd0ff2685 2011-02-02 19:35:32 +01:00
Juergen Weigert
0fd0ff2685 Help text of co -s was indentical to co -S, fixed to say local instead of server.
Fixed -s to chdir into the project for the sake of /usr/lib/obs/service/verify_file
2011-02-02 17:11:14 +01:00
Marcus Huewe
d174599b8d - escape % in help text 2011-02-01 20:07:29 +01:00
Marcus Huewe
1a89821f36 - fixed indention+small cleanup
- added "XXX" comment due the openSUSE specific "osc co obs://" implementation
2011-02-01 18:37:17 +01:00
Juergen Weigert
9228cebdc5 osc checkout '%{disturl}' is now supported. 2011-01-31 17:49:04 +01:00
Marcus Huewe
f9b1bd5c18 - do_search: '::' isn't a perl specific namespace/package/module separator 2011-01-30 21:37:45 +01:00
Marcus Huewe
d4b4182220 - parse_repoarchdescr: use similar build descr "guessing" mechanism like bs_srcserver (but it still differs) 2011-01-30 16:38:11 +01:00
Marcus Huewe
880e7d5cb2 - do_request: added "--edit" option to edit a submit action ("osc rq show <id> --edit") 2011-01-30 14:24:21 +01:00
Marcus Huewe
dd1237218c - clone_request: return the "targetproject" 2011-01-29 23:14:19 +01:00
Marcus Huewe
919c347c7f - handle requests with multiple (submit) actions 2011-01-29 18:47:26 +01:00
Marcus Huewe
d5173cfc01 - use get_actions method 2011-01-29 17:47:28 +01:00
Marcus Huewe
68d559e343 - refactored request diff code 2011-01-29 17:24:45 +01:00
Marcus Huewe
89ceb20abb - fix for db9e7c7974 2011-01-28 15:52:10 +01:00
79656a45e1 fix "osc add some_git_url", using now official source service instead of unknown git_pull 2011-01-26 17:29:43 +01:00
e5333f0b23 support project wide source services 2011-01-26 17:22:03 +01:00
373727ba55 new source service commands "localrun" and "disabledrun" to generate files without _service: prefix 2011-01-26 16:30:57 +01:00
Marcus Huewe
8a488d3b6d - reworked do_requestmaintainership() 2011-01-25 21:06:28 +01:00
Marcus Huewe
db8818c30f - do_changedevelrequest, do_deleterequest: use Request object to create the request
- removed: core.create_delete_request(), core.create_change_devel_request()
2011-01-25 20:41:42 +01:00
Ludwig Nussel
b1be0f84ea refactor diff command 2011-01-25 16:53:31 +01:00
Ludwig Nussel
6be91ceda0 download debugsource with --debug rather than --source 2011-01-25 16:53:31 +01:00
eb1c5e0f48 add better support for reviews of requests. User api side request search if available. 2011-01-24 08:29:47 +01:00
Marcus Huewe
09b323c2d3 - globally ignore broken pipe 2011-01-22 16:41:06 +01:00
Sascha Peilicke
1491dd4f4b Don't crash on broken pipe (fixes bnc#661963). 2011-01-21 11:22:18 +01:00
Sascha Peilicke
b66ab73475 Don't mix tabs with spaces. 2011-01-21 11:13:18 +01:00
Sascha Peilicke
0a40037d27 Use './binaries' as default directory for getbinaries.
Previously, there was no directory set when fetching multiple arches and
distinct dirs for specific arches. Should be more consistent now.
2011-01-21 10:35:47 +01:00
Marcus Huewe
dd377b07a6 - fixed #663270 ("osc importsrcpkg --commit fails") 2011-01-20 20:39:20 +01:00
507567be71 support to view the commit history of deleted packages 2011-01-19 20:26:38 +01:00
Marcus Huewe
7fa621be16 - do_delete: inform about non existent skipped file 2011-01-18 19:38:33 +01:00
Marcus Huewe
955ee78e8b - fix for my last commit 2011-01-17 19:33:02 +01:00
Marcus Huewe
78cf44a5bc - do_search: if --involved, --bugowner etc. is used default to <username> if no search_term is specified 2011-01-17 19:28:50 +01:00
8fed7847e4 fallback to unexpanded diff mode on "osc diff" on merge error. Same behaviour as rdiff is doing. 2011-01-12 17:09:41 +01:00
d11e9f8514 add "osc less", it is "osc cat" + pager 2011-01-12 17:04:22 +01:00
f729ea8e38 fix add_me request 2011-01-12 11:29:46 +01:00
c226327ae5 add option to request the additon of a group to a project or package and rename add_role to add_user to make the difference obvious. 2011-01-11 20:02:48 +01:00
Rohan McGovern
2d5b853aa0 Expand links when checking out a single file.
Prior to this change, `osc co PROJECT' and `osc co PROJECT PACKAGE'
would both follow links, but `osc co PROJECT PACKAGE FILE' would not.

To make matters even more confusing, `osc ls PROJECT PACKAGE FILE'
does follow links - so, for linked files, an `ls' would tell you a file
exists, then `co' would give a 404 error.

This change fixes the inconsistency.
2011-01-11 19:56:29 +01:00
06e285130b add createrequest "add_me" shortcut 2011-01-10 13:12:09 +01:00
8bad2ed16b fix crash on missing initialisation 2011-01-08 15:06:36 +01:00
db9e7c7974 - add blt and rblt commands, aka "buildlogtail" and "remotebuildlogtail" to show
just the end of a build log (for getting the fail reason faster).
   CHANGE: the --start parameter is now called --offset
2011-01-07 23:05:44 +01:00
Michal Vyskocil
ef37e6b721 Drop pre_checking.sh (8ea5bc7) due security problems 2011-01-07 09:17:50 +01:00
Michal Čihař
3892117558 Print warnings to stderr.
This way we can avoid confusion for programs which do parse osc output.
2011-01-05 16:32:41 +01:00
Michal Vyskocil
8ea5bc7f04 run pre_checkin.sh on build and commit
The pre_checkin.sh is script run after each checkin of package into
SUSE. Osc build and commit commands now runs it automatically too,
unless --no-precheckin is specified.
2011-01-05 16:12:25 +01:00
Michal Čihař
ae13273045 Fix listing of projects and packages with unicode name
This fails with UnicodeEncodeError on non unicode terminal, what makes
it impossible to list project on current OBS.
2011-01-05 10:11:55 +01:00
Marcus Huewe
875fd86a31 - reqid is a str (now) 2010-12-30 13:28:11 +01:00
Marcus Huewe
40d1c58e1d - added TODO to commandline.py (rewrite and consolidate the current submitrequest/createrequest "mess") 2010-12-30 03:14:24 +01:00
Marcus Huewe
dc869920b3 - print a newline after a list_view() call 2010-12-30 03:10:27 +01:00
Marcus Huewe
6cd837fcb3 - fixed attribute names for Request() instances (changed "dst_" prefix to "tgt_") 2010-12-30 03:04:10 +01:00
Juergen Weigert
01fc46cbd3 New config option 'checkout_rooted'. Default off to retain current
behaviour. Enabled, it prevents checking out projects inside of other
projects or packages. That better matches my mental model of a tree.
2010-12-27 23:03:17 +01:00
Juergen Weigert
ce3ee5e614 Added -V, --version to do_search.
This shows all the hard to retrieve, but 'essential' details about a
package: version, revision, srcmd5
If there is a better way some day, than digging through _history,
please improve core.py:get_source_rev()
It is a new option, only because it is so slow; the version
number should rather be in default output.
2010-12-26 21:14:40 +01:00
Marcus Huewe
f30297d2d3 - moved get_commit_msg into core.py + fixed _commit_msg handling 2010-12-26 13:33:14 +01:00
Marcus Huewe
3ed4d30c55 - do_status: call print unless "lines" is empty 2010-12-25 20:57:26 +01:00
Juergen Weigert
f39460c8d8 Added 'osc linkdiff'
This shows all changes since branching, be they committed or not.
Implementation folded into do_diff() for reuse of code, although
this can behave quite differently.
2010-12-24 22:44:19 +01:00
Marcus Huewe
c330700f36 - refactored getStatus into the Project/Package class
- removed getStatus
- added the following new methods to the Project class:
  * get_status: get the status of all packages in the project
  * status: get the status of a single package
  * get_pacobj: return a new Package object
- added the following new method to the Package class:
  * get_status: get the status of all files in the package
- do_commit: fixed getStatus() call
- do_status: rewrite (uses new methods)
2010-12-22 23:17:11 +01:00
Ludwig Nussel
70b3c3c435 fix osc my rq
also display requests for packages where the user is maintainer of
the package but not the project (e.g. devel:openSUSE:Factory)
2010-12-22 08:46:54 +01:00
Ludwig Nussel
78efea07eb retry rdiff on unexpanded sources if link expansion fails 2010-12-21 14:12:14 +01:00
Ludwig Nussel
5376580652 use list instead of string for command
now arguments with spaces should also work
2010-12-21 14:12:14 +01:00
Ludwig Nussel
820595bb20 osc build --shell 2010-12-21 14:12:14 +01:00
Marcus Huewe
570d4f7f70 - do_config: added --dump and --dump-full options to dump the complete configuration 2010-12-18 17:16:43 +01:00
Juergen Weigert
45e6e5cf08 Added dropreq droprequest as aliases to deleterequest,
mention 'drop' in usage. We often say 'drop a package'.
2010-12-14 15:49:27 +01:00
Marcus Huewe
de25822a33 - wc_repair: check if passed apiurl is valid
- do_repairwc: get apiurls from conf.config.api_host_options dict
2010-12-09 20:36:06 +01:00
Sascha Peilicke
67cd6582b5 Wrong parameter fix patch by Markus Rückert. 2010-12-09 17:36:31 +01:00
9d167a7eab offer also to supersed requests in review state (Bug #658479) 2010-12-09 08:28:11 +01:00
5af3ac58de offer also to supersed requests in review state (Bug #658479) 2010-12-09 08:28:11 +01:00
Marcus Huewe
68bb33f141 - potential fix for #657838("osc 0.130: osc repairwc fails totally - working copy useless")
- do_repairwc: added '--force-apiurl' option:
  ask once for an apiurl and force this apiurl for all inconsistent projects/packages
2010-12-07 20:35:12 +01:00
Marcus Huewe
15178b6e4f - use 'print' instead of 'return' (otherwise the message will be written to stderr) 2010-12-06 21:44:38 +01:00
Juergen Weigert
42f8c595f9 fixed URL in aggregatepac help text. 2010-12-03 12:39:18 +01:00
Juergen Weigert
200807fb37 suggesting 'osc ls /' for listing all projects. 2010-12-02 23:52:38 +01:00
Juergen Weigert
2fd0f1cb95 allow 'osc results PROJECT', as an alternative to 'osc prjresults PROJECT'.
Flagged 'ls' without arguments as deprecated. This should really list
relative to the working directory rather than all projects.
It's now consistent with running 'osc r' in PRJ/PKG working directory.
2010-12-02 23:36:40 +01:00
Marcus Huewe
94836bcbf7 - do_submitrequest: --cleanup and --no-cleanup are mutually exclusive 2010-11-26 14:53:30 +01:00
Marcus Huewe
f77ab86010 - beautify 2010-11-26 14:51:07 +01:00
Juergen Weigert
955522f8e1 let 'osc submitpac' default to do cleanup.
In my understanding a submit is often considered a move and not a copy.
2010-11-26 12:39:09 +01:00
Marcus Huewe
668a38e978 Revert "rename requestmaintainership to requestrole (much nicer and makes more sense)"
This reverts commit cc9d3e07eb.
(see discussion on the ml)
2010-11-25 22:23:12 +01:00
Pavol Rusnak
cc9d3e07eb rename requestmaintainership to requestrole (much nicer and makes more sense) 2010-11-24 18:20:49 +01:00
Marcus Huewe
6d89fee500 - do_requestmaintainership: added --role option to allow different roles ('bugowner' or 'maintainer') (slightly modified version of Anas Nashif's <nashif@linux.intel.com> patch) 2010-11-24 16:41:02 +01:00
115de1e5c1 fix "osc update -s" help text 2010-11-24 15:35:16 +01:00
Ludwig Nussel
3631df59d4 make rdelete more fool proof
The previous convention of allowing multiple packages has caused
accidental deletion of packages while deleting files was intended (which
doesn't work that way). e.g. osc rdelete foo/bar/baz.spec would delete
foo/bar and then fail trying to delete foo/baz.spec

Also calling osc rdelete with accidental slash, e.g. osc rdelete
/foo/bar actually deleted project foo including all it's packages
without asking questions.

Both traps are eliminated now.
2010-11-24 14:24:59 +01:00
0bb0fb80f1 fix reopen or a review of a request 2010-11-24 14:18:45 +01:00
Brandon Philips
0a65b9870e commandline: improve ENOTDIR error message for validators
WARNING: source_validator_directory configured but it does not exist:
	 /usr/lib/osc/source_validators
	 Install osc-source_validator to fix.

Signed-off-by: Brandon Philips <bphilips@suse.de>
2010-11-19 08:24:20 +01:00
Marcus Huewe
ca794fe87f - added template support for a submitrequest accept/decline message 2010-11-14 18:32:02 +01:00
Marcus Huewe
7ade282e6e - rewrite pass to passx if pass and passx mismatch
- do_config: automatically reread (which may lead to a rewrite) config
  if an option was changed
2010-11-14 13:10:17 +01:00
Juergen Weigert
805d9f9bf7 osc se Foo::Bar shortcut for osc se --package perl-Foo-Bar 2010-11-12 23:55:11 +01:00
8321e41096 fix review state change for review by_group 2010-11-09 17:19:56 +01:00
Ludwig Nussel
1b4955dc2a add --arch and --repo to rebuild for Richi 2010-11-08 16:21:04 +01:00
Michael Schroeder
1299063228 - adapt 'osc pull' to new addlist implementation 2010-10-29 17:41:39 +02:00
Marcus Huewe
785e4dcb1f - added new "clone_request" method 2010-10-26 15:34:32 +02:00
Marcus Huewe
a651156b71 - don't print set value if --no-echo is used 2010-10-16 12:32:21 +02:00
Marcus Huewe
6d9b057898 - do_config: added new options --stdin, --prompt, --no-echo
--stdin: read value from stdin
--prompt: prompt for a value
--no-echo: prompt for a value but don't echo entered characters (for instance to enter a passwd)
2010-10-16 12:24:21 +02:00
Ludwig Nussel
5cdc422774 update review/request docu and fix some status code parsing 2010-10-12 11:31:03 +02:00
Ludwig Nussel
42866b1e12 prompt for message on review add 2010-10-12 11:31:02 +02:00
Ludwig Nussel
9e0b8c3760 remove 'review new', it's broken and intention unclear 2010-10-12 11:31:02 +02:00
Ludwig Nussel
0d93af2291 default to current user when adding a review 2010-10-12 11:31:02 +02:00
Ludwig Nussel
1b8c4a3382 add alias for old option 2010-10-12 11:31:02 +02:00
Marcus Huewe
4229eb6197 - repairwc: repair a project wc (only missing '_apiurl' file so far) 2010-10-10 21:40:31 +02:00
Marcus Huewe
cc29db4551 - get rid of osc.core.init_project_dir
- moved cleaned up code to the Project class' "init_project" static method
2010-10-09 16:26:55 +02:00
Sascha Peilicke
0ec57a9e84 fixed do_rebuild: allow 'rebuild' in project paths
Previously, an 'osc rebuild' was only possible inside a package
directory contrary to the command help.
2010-10-08 12:25:32 +02:00
Marcus Huewe
c112331f25 do_buildinfo: accept the same arguments like do_build
- removed "with" statement again
2010-10-04 15:57:52 +02:00
Sascha Peilicke
7927a7ba04 Merge commit 'refs/merge-requests/6' of gitorious.org:opensuse/osc into integration 2010-10-04 15:06:32 +02:00
Sascha Peilicke
53813ff15a Merge commit 'refs/merge-requests/7' of git://gitorious.org/opensuse/osc into integration 2010-10-04 15:04:04 +02:00
Marcus Huewe
b08802e9fe - fixed do_my (was broken by commit 54513a23de but nobody noticed it so far) 2010-09-29 19:57:00 +02:00
Marcus Huewe
64ac6aeb4f - do_repairwc/wc_repair: repair missing "_apiurl" file
- store_read_apiurl: raise WorkingCopyInconsistent if dir is a wc, defaulturl is False
  and ".osc/_apiurl" doesn't exist (otherwise NoWorkingCopy is raised)
- WorkingCopyInconsistent: add new attribute which contains the dirty files
2010-09-28 23:07:33 +02:00
Marcus Huewe
67c07e38c0 - minor indention fix 2010-09-28 16:20:55 +02:00
5feac3f242 do not download large debug packages by default with "getbinaries" 2010-09-27 17:43:44 +02:00
Juergen Weigert
e8859a6a74 oops, that was perl syntax ... 2010-09-21 19:59:15 +02:00
Juergen Weigert
eb295452ae fixed 'osc rq list -a proj pack'; added 'osc my rq' to usage of osc rq 2010-09-21 19:44:34 +02:00
Marcus Huewe
f7dc7abebc - do_submitrequest: ignore skipped files 2010-09-21 11:20:05 +02:00
brook hong
02980dfdb0 git_pull service osc support 2010-09-20 17:09:43 +08:00
Marcus Huewe
af7ff0f2ad - request_interactive_review: added "(s)kip" option to skip the current request 2010-09-17 23:03:29 +02:00
Marcus Huewe
de8b33f29d - support --interactive-review option when running "osc rq list <project>"
iterates over all requests for the given project and calls "request_interactive_review"
2010-09-17 21:03:52 +02:00
Marcus Huewe
6d9c5cf228 - "osc request show <id>": added --source-buildstatus option to print the buildstatus of the src package
- "osc request show <id> --interactive": added shortcut "b" to print the buildstatus of the src package
2010-09-14 16:02:21 +02:00
Marcus Huewe
986e71d575 - do_repairwc: adjusted help text 2010-09-14 14:51:18 +02:00
Marcus Huewe
69c3161e93 - do_repairwc: print more details how to fix a broken wc 2010-09-14 14:48:10 +02:00
Marcus Huewe
56d3b9b479 - "do_repairwc": find all broken pkgs and repair them if it's called in a project dir 2010-09-14 14:40:18 +02:00
Vincent Untz
e78e4f3151 make "osc rdiff" run with a pager
We also do this for "osc request show -d" and similar friends.

Also, make run_pager() handle the case where the string is empty,
instead of having to make the caller handle it.
2010-09-12 23:22:18 +02:00
Sascha Peilicke
5d17235ea6 Now works, also fixed BUILD_DESCR parsing. Dangling file handle is now closed correctly. 2010-09-10 15:57:40 +02:00
Sascha Peilicke
9ceb3bfe94 initial changes. 2010-09-10 15:57:40 +02:00
Sascha Peilicke
4c25b73151 Streamlined 'bugowner' and 'maintainer' commands.
Both commands now check the current working-copy path if no arguments
are given and return the respective maintainer/bugowner.

Related to that, the help messages where updated and changed slightly
to look more similar.
2010-09-10 14:20:42 +02:00
8e92cebaf2 don't crash on add_role to a project (untested) 2010-09-09 22:08:24 +02:00
Marcus Huewe
fdc43cd9a2 - added validator params to "commitExtPackage"
- use True/False instead of 1/None for the "verbose_validation" parameter
2010-09-09 12:49:53 +02:00
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
ef2d0aa2e9 add "request clone" command for OBS 2.1 2010-08-05 15:54:48 +02:00
1e2bbf941c fix comment message transfer for "review add" command 2010-08-05 10:24:20 +02:00
Ludwig Nussel
ebd4b1d893 prefer spec files that match the directory name only if there are no debian or kiwi files
partially reverts commit 1b6fbd7d05.
2010-08-04 17:26:59 +02:00
5bd78d44f8 another try for prjresutls, do not show "excluded" packages/repos by default,
but show the manual disabled ones.
2010-08-04 17:16:59 +02:00
Ludwig Nussel
a4a52b62ae fix and rename osc pr --show-non-building
fix osc pr --show-non-building to actually do what it is supposed to
do. Change default to not do filtering by renaming the option to
--hide-disabled
2010-08-04 16:49:57 +02:00
Ludwig Nussel
def93eb9d9 fix rq show 2010-08-03 09:35:39 +02:00
Danny Kukawka
f2788628c6 fix output of 'osc buildinfo' if parameter are missing
Fixed output of 'osc buildinfo' if parameter are missing due to change
from commit cb18807622. Show only the
available repos (and not the arch) if called from a checked out
package.
2010-07-31 13:30:26 +02:00
Marcus Huewe
1b6fbd7d05 - don't use spec by default if multiple build description files are found
otherwise it'll lead to unexpected behaviour if the repository is for instance
debian
2010-07-30 14:02:23 +02:00
cb3691426c add "review add" command 2010-07-30 11:36:17 +02:00
Danny Kukawka
db08e0b496 fixed several functions to respect 'osc -A' 2010-07-29 17:29:51 +02:00
cb18807622 do not crash via using not anymore supported /platform controller (unsupported since OBS 1.0)
Unify "repos" and "repositories" command. Make the command working at all as specified.
2010-07-29 17:04:39 +02:00
753893222a support list of open reviews 2010-07-29 13:46:56 +02:00
b5bd00fc8f make "osc api" syntax compatible with curl parameters 2010-07-29 11:43:56 +02:00
b4a1f83e01 * add the new "dist" command to NEWS file.
* disable the "DISCONTINUED" support for now, because this is just a hack
  which only works with one instance. We need a server side supported approach
  in case we need this.
* Show repository to be used and the suggested reponame for own project
2010-07-29 07:37:54 +02:00
Danny Kukawka
ead799632f Merge branch 'master' of gitorious.org:opensuse/osc 2010-07-28 16:05:36 +02:00
Danny Kukawka
290a3f0f90 added new command 'osc distributions'
added new command 'osc distributions' to get info about active
and discontinued distributions.
2010-07-28 16:04:27 +02:00
4c6ffb7607 prjresult: Do not show package rows or repo columnss by default which are not building at all (in disabled or excluded)
A Rudi feature ;)
2010-07-28 15:38:01 +02:00
10f4a6240d remove a file from conflict list in any case, when it gets removed 2010-07-28 12:13:46 +02:00
d128ff4601 generated service files are always to be skipped regarding status and commit 2010-07-28 12:08:40 +02:00
Henne Vogelsang
98aa12c9a3 fix links that point into the wiki
Signed-off-by: Henne Vogelsang <hvogel@opensuse.org>
2010-07-27 17:24:05 +02:00
Danny Kukawka
33dc89d805 changed print_repos() to print only repos on request
Changed print_repos() to print only repos (and not repo and arch)
on request since 'osc buildinfo' needs only the repo as parameter.

Fixed do_repositories() apiurl handling and changed to get the
project from checked out project or package dir if available.
2010-07-27 14:31:12 +02:00
Danny Kukawka
eb0cb6dee9 don't raise error message after self.print_repos()
Don't raise error message after self.print_repos(), since the
message will never be printed.
2010-07-27 14:03:26 +02:00
Danny Kukawka
6712b44bee Merge branch 'master' of gitorious.org:opensuse/osc 2010-07-27 14:01:19 +02:00
Danny Kukawka
35536475e7 fixed 'osc buildconfig'
Fixed 'osc buildconfig'. Don't ask for package and arch since the
API don't allow to filter for a package or a architecture.

Remove related and useless parameter from get_buildconfig() in
core.py
2010-07-27 13:58:52 +02:00
Juergen Weigert
8830d396cb - fixed references into en.opensuse.org to honor the new wiki structure
(redirects added in the wiki for the three URLs on 'osc help' -
    all other URLs remain broken until this osc gets deployed)
2010-07-26 19:45:42 +02:00
Marcus Huewe
de884b719c - do_buildlog: show appropriate error msg if too many args are specified 2010-07-26 19:02:48 +02:00
Danny Kukawka
b3c5204b59 fixed serveral warnings from pychecker.py
Fixed serveral warnings from pychecker.py like such:
- Parameter ($) not used
- Local variable ($) not used

Including fixes like:
- remove not needed imports
- don't read apiurl in core.py from config if already available via
  function parameter
- delPerson(): check for user as e.g. in addPerson()
2010-07-26 16:46:21 +02:00
Marcus Huewe
e2ab1a520e - do_buildinfo: support --prefer-pkgs 2010-07-26 15:41:02 +02:00
70fb883b59 point the users to the "branch" command 2010-07-21 09:46:54 +02:00
ad28c0552e import "osc aggregate --nosources" feature, implemented by brook.hong@nokia.com 2010-07-20 14:48:27 +02:00
Michal Čihař
74f583823f Fix typo. 2010-07-19 11:10:15 +02:00
1975ddb8eb Revert "no need to warn about empty validator dir"
after discussion, we will provide an update with osc-source_validator instead

This reverts commit 828bb264ca.
2010-07-16 15:57:28 +02:00
Marcus Huewe
0fbfcb4fdb - fixed SyntaxError 2010-07-13 14:53:25 +02:00
f2be29f0a0 add signkey --extend command 2010-07-13 13:53:47 +02:00
Danny Kukawka
3ed00b4568 changed do_repos() to filter out disabled repos of a package
Changed do_repos() to filter out disabled repos of a package. Read
package from checked out package dir. This changes also the output
of getbinaries if args are missing and the user is within a checked
out package dir. Show only enabled repos in this case.

Allow also osc repos [PROJECT] [PACKAGE].
2010-07-12 14:56:08 +02:00
Ludwig Nussel
828bb264ca no need to warn about empty validator dir
also remove from config template. the default should be ok.
2010-07-07 16:41:09 +02:00
Ludwig Nussel
a00c0c4006 allow to restrict 'my pkgs' to maintained ones 2010-07-07 16:41:09 +02:00
Marcus Huewe
9fadbb42fd - more precise error message about missing source_validator 2010-07-06 17:57:10 +02:00
Danny Kukawka
f8f448b6ba respect -A for 'osc deleterequest' 2010-07-06 14:18:24 +02:00
Danny Kukawka
bd821937f6 changed 'osc deleterequest' to get info from checked out pac/proj
Changed 'osc deleterequest' to get info from checked out package or
project dirs. Added edit message about what the user requested.
2010-07-06 14:16:24 +02:00
Danny Kukawka
28441bfaeb make getbinaries also work in project dirs
Maked getbinaries also work in project dirs. If osc getbinaries
get called in a checked out package directory, the binaries for
all packages of this project get checked out.
2010-07-01 15:32:21 +02:00
Ludwig Nussel
cd51a420d7 less verbose results output by default
especially factoy results often fill the screen with lots of "blocked" errors. So don't display the details by default unless --verbose is given
2010-06-30 13:40:02 +02:00
Ludwig Nussel
14d4ece2fb allow to override apiurl for 'build' 2010-06-30 13:39:59 +02:00
Juergen Weigert
382dd29e03 Make 'trust always' more verbose, so that a user learns how to undo its effect.
Removed a few tabs.
2010-06-29 15:32:53 +02:00
073e2b0517 support re-open of requests 2010-06-29 12:13:24 +02:00
Jan Engelhardt
150cdebf6d osc/commandline: fix reoccurring typo
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
2010-06-28 08:41:21 +02:00
Danny Kukawka
1438ca5c1b Merge branch 'master' of gitorious.org:opensuse/osc 2010-06-27 21:21:08 +02:00
Danny Kukawka
260cb3ab00 extended 'osc wipebinaries' to read package/project from dirs
Extended 'osc wipebinaries' to read package/project from checked out
directories if possible.
2010-06-27 19:07:46 +02:00
Ludwig Nussel
377ee28887 add support for --oldpackages 2010-06-25 11:23:44 +02:00
Ludwig Nussel
da0ccd5d8c auto apiurl for osc meta 2010-06-23 14:47:52 +02:00
Ludwig Nussel
c6f770cf27 fix getbinaries --sources 2010-06-23 14:47:52 +02:00
Danny Kukawka
a9b05119d6 another fix for osc results -r/-a in project directories
Fixed osc results -r/-a in project directories by fixing filtering
of architecture and repository (they are arrays and not strings).
2010-06-21 17:10:25 +02:00
Danny Kukawka
1c02a1bd06 fixed some warnings from pychecker 2010-06-15 17:07:14 +02:00
Danny Kukawka
343fd89f4c fixed whitespaces in osc getbinaries help text 2010-06-15 16:38:48 +02:00
01d349d0e8 make it possible to run local source services on checkout/update 2010-06-08 11:24:10 +02:00
Ludwig Nussel
2ba65c531a fix osc log without arguments 2010-06-07 09:02:00 +02:00
e4615a324b add propper error handling in case running "osc log" outside of checked out project/package 2010-05-27 07:21:33 +02:00
b0b5953b3e support history of projects via "osc log" 2010-05-27 07:17:27 +02:00
Marcus Huewe
24d3b18e13 - cleanups
- fixed do_log
- use "safe writes" in init_package_dir()
2010-05-27 02:18:00 +02:00
d2dbc069b0 use correct apiurl when triggering a rebuild of local package 2010-05-25 17:50:36 +02:00
6860613ba9 harmonized osc parameters, user always "-M" for "--meta" 2010-05-25 14:54:11 +02:00
2ae9a9453a fix commit of files in meta mode 2010-05-25 14:54:11 +02:00
Marcus Huewe
c33d229953 - fixed permissions 2010-05-24 22:40:31 +02:00
brook hong
11c2f0a510 implement https://features.opensuse.org/309351 2010-05-24 19:28:44 +08:00
Marcus Huewe
3ae6d5dd07 - getbinaries: cleanup 2010-05-22 18:27:11 +02:00
1e5b0e2ffb runtime fixes for last commit 2010-05-22 08:55:39 +02:00
6cbff920dc add validation verbose mode for easier debugging 2010-05-22 08:51:04 +02:00
1e985f38e2 * offer access to deleted projects/packages
* allow checkout of meta data of packages
* process validators in sorted order
2010-05-22 08:23:09 +02:00
da0c0f6b86 support undelete of project or package 2010-05-21 19:03:20 +02:00
7e0abcd805 Make source validator moduler, execute all scripts in directory 2010-05-20 12:02:53 +02:00
e9b5ca869a support source validators as pre-checkin check 2010-05-20 06:40:18 +02:00
Pavol Rusnak
273fabb4da fix osc add 2010-05-19 15:34:59 +02:00
41f925addc allow to set a temporary comment for a review via "osc review new"
(Fate #307506)
2010-05-19 14:12:49 +02:00
beae2c0cdd when doing "osc up -e" or "osc up -u" the actual update did not happen,
because revision md5 was used from local data. Doing an update of it before.
2010-05-19 13:02:23 +02:00
87a6bf4205 approvenew is a little bit less horrible then acceptallnew, isn't it ? 2010-05-19 12:50:52 +02:00
9f65f138ed add "osc rq acceptallnew $PROJECT" command to show and accept all request in new state.
This makes sense esp. for projects which work with default reviewers before.
(like it is planned for openSUSE:Factory).
In this way the review can happen during the week, people get feedback ASAP when review
fails, but the entire rebuild does not happen before the everything get accepted.
2010-05-19 12:29:56 +02:00
a337968dcb * support branching with --force, to override existing target.
* Sorted OBS 2.0 features in NEWS file
2010-05-19 10:47:01 +02:00
c1de76cc84 allow --force branch, even when target already exists 2010-05-17 20:14:49 +02:00
390b9659fe extent command description for add 2010-05-14 16:59:45 +02:00
1ca862308b add support for obs download_url source service.
"osc add $URL" is adding a download_url source service to the package now.
This means the server is downloading the file itself, important for reviewing
version updates.
2010-05-14 16:45:58 +02:00
Ludwig Nussel
d292c83205 guess spec file name from current directory 2010-05-12 15:56:33 +02:00
d96aff0ae7 Merge branch 'master' of gitorious.org:opensuse/osc 2010-05-08 08:04:55 +02:00
1c24457bed fix copypac with same source and destination:
If a revision is specified, this is actually a revert call and it has to work.
2010-05-08 08:03:56 +02:00
Ludwig Nussel
81824b3d04 don't die if saving repo list fails 2010-05-07 11:57:42 +02:00
Ludwig Nussel
05e0cb620b whitespace fixes 2010-05-05 09:03:51 +02:00
Danny Kukawka
5a19362570 add run_pager() and make osc log/diff work like git log/diff
Added new function run_pager() to get 'osc log/diff' work like
'git log/diff' which send the output to PAGER (which is by default:
less or what's defined in the environment).

Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-04 08:57:30 +02:00
Danny Kukawka
e89e61380b make sure global option -A works too in a checked out package
Make sure global option -A works too in a checked out package.
Always check if -A was passed to command line and use it
instead of the package/project dir information.

Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-04 08:57:24 +02:00
Danny Kukawka
8bdb78cc8f get apiurl for 'osc my' from checked out package
Get apiurl for 'osc my' from checked out package if possible.
Make sure that global option -A works to in a checked out
package.

Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-04 08:57:24 +02:00
Danny Kukawka
e35e161b24 added 'osc getbinaries REPOSITORY' to checkout all binaries
Added 'osc getbinaries REPOSITORY' to checkout all binaries
(incl. source package) of a REPOSITORY. New option checks out
all architectures into subdirs named as the arch.

Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-04 08:57:20 +02:00
Danny Kukawka
debfd71048 fix close() statement in download()
From 257d823c45b940604c8d3d992b1e1f2da3746074 Mon Sep 17 00:00:00 2001
From: Danny Kukawka <danny.kukawka@web.de>
Date: Fri, 30 Apr 2010 17:17:17 +0200
Subject: [PATCH] fix close() statement in download()

Fixed warning from pychecker by fixing the close()
statement in download().

Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-03 22:33:56 +02:00
Ludwig Nussel
af467cea2d allow to override vm type on command line 2010-04-30 15:58:31 +02:00
Ludwig Nussel
cfeee1c95d store list of repos for offline use 2010-04-30 15:58:31 +02:00
Marcus Huewe
95a6643769 - minor cleanup 2010-04-30 15:25:24 +02:00
Marcus Huewe
d55c16cce4 - simplify comment:) 2010-04-30 15:19:35 +02:00
Ludwig Nussel
59b19bd012 use common function for launching an editor 2010-04-28 11:52:15 +02:00
Ludwig Nussel
a0aba626b3 project and package auto detection for osc meta 2010-04-28 11:52:15 +02:00
Ludwig Nussel
cecd75db4d option to hide download meter when finished 2010-04-28 11:52:14 +02:00
Michal Vyskocil
5d2587e916 print the error message on multiple description files 2010-04-27 18:23:03 +02:00
Michal Vyskocil
f3d7b0e4fc use glob when searching the build description 2010-04-27 18:18:34 +02:00
Michal Vyskocil
6e388a266a osc branch reads project/package in package directory
The osc branch (withouth arguments) is able to read the project/package
from current package dir and use it.
2010-04-27 12:23:03 +02:00
Marcus Huewe
d0659fb0f4 - core.request_interactive_review(): backward compatibility fix 2010-04-26 17:57:57 +02:00
4db40e23f5 support OBS 2.0 "unresolvable" state, former expansion error state is still supported. 2010-04-23 14:38:34 +02:00
Ludwig Nussel
fc27b4816b make osc rebuild pick package from working directory 2010-04-23 12:01:24 +02:00
bf7213b768 add a --size-limit option to checkout and update.
Very usefull, if you want to ignore large tar balls over slow connections
and just want to do some spec file changes.
2010-04-22 15:27:54 +02:00
Marcus Huewe
4290c5143b Merge branch 'master' of git://gitorious.org/opensuse/osc 2010-04-21 15:19:09 +02:00
Marcus Huewe
ba7993ffb0 - backward compatibility fix (only a recent api/backend supports the missingok parameter) 2010-04-21 15:18:20 +02:00
Michal Vyskocil
1325b2813a --csv/--format options for osc results 2010-04-20 15:43:41 +02:00
Marcus Huewe
d0abff3210 - use oscerr.UserAbort() 2010-04-20 15:22:03 +02:00
Jan-Simon Möller
cbed877aa7 cleanup 2010-04-17 15:19:41 +02:00