1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 09:46:19 +02:00
Commit Graph

1206 Commits

Author SHA1 Message Date
Ludwig Nussel
0bdd0a676e slash separate sm output 2012-01-18 16:50:47 +01:00
Michael Schroeder
4a1cc2cc88 - the help says 'implies --binary', make it so 2012-01-13 17:43:32 +01:00
Michael Schroeder
754897d905 add --binaryversion option 2012-01-13 15:18:33 +01:00
e0683d074c - use qemu as fallback when arch is not supported (unable to test it because of broken binfmt misc) 2012-01-12 13:47:31 +01:00
94a670e067 - patchinfo call can work without checked out copy now 2012-01-09 11:29:11 +01:00
bb373a9c9d - use correct target package name on branch result (when --extend-package-names or when devel package is set) 2012-01-05 17:15:39 +01:00
3651508724 - use cmd=branch&dryrun=1 for search of maintained packages to get same result as on branching 2012-01-05 16:16:13 +01:00
Dirk Mueller
836423d2cf fix handling of -u parameter in mbranch 2012-01-05 14:41:02 +01:00
Dirk Mueller
285dc40a8a fix handling of --attribute in mbranch 2012-01-05 14:40:57 +01:00
4e7867e3cd - fix "ldiff" command, it crashed due to inexistent md5sum in linked package 2012-01-04 13:27:31 +01:00
Marcus Huewe
3aeff9e0d0 - removed debug stuff... 2011-12-20 18:42:03 +01:00
b3e1321ad6 - fix patchinfo new creation call 2011-12-16 15:29:54 +01:00
89edcc32ec - move declined requests in "my rq" to the bottom 2011-12-16 09:44:57 +01:00
bede808271 - offer to supersede requests in declined state on creating a new submit request 2011-12-15 15:50:11 +01:00
c076e2b4d2 - show declined requests to the creator on "my rq" function 2011-12-15 15:35:11 +01:00
2e2deb3ec8 - support link or branch from not-yet-existing-packages to pre-define the later submit target 2011-12-15 15:12:41 +01:00
Sascha Peilicke
2950d89be4 Clarify link / branch difference
Should fix bnc#723578
2011-12-12 12:57:13 +01:00
46555269e6 - fix typo 2011-12-06 13:22:50 +01:00
a5edbb201a - add support for new branch --extend_package_names 2011-12-01 15:54:50 +01:00
f47e8f16c7 - support updating of existing _patchinfo files 2011-11-30 10:52:50 +01:00
fdde366daf - be a bit more verbose on copypac comment (to see which options where used) 2011-11-25 13:05:41 +01:00
b659ad5285 - support new branch add_repositories api call 2011-11-25 10:12:16 +01:00
Marcus Huewe
da745728cc - do_log: support -r rev1:rev2 (revision ranges)
This obviously only work for "plain" revisions
2011-11-22 20:13:52 +01:00
ce1bcee552 - support "serveronly" source service 2011-11-22 14:47:11 +01:00
49cdfa4fe3 - add --keep-link option to copypac command 2011-11-21 12:33:32 +01:00
Marcus Huewe
34454ac91d - do_vc: fixed #719754 ("osc vc fails with 'User not found'") 2011-11-18 22:48:50 +01:00
Marcus Huewe
ac10fd798d - do_getbinaries: minor cosmetic change 2011-11-18 21:52:30 +01:00
Marcus Huewe
da88ec0a39 - fixed #713178 ("osc getbinaries in project scope throws error") 2011-11-18 21:51:03 +01:00
Marcus Huewe
64224f9668 - core.set_link_rev: return revision
- do_setlinkrev: print the revision which is stored in the 'rev' attribute (if rev is not None)
2011-11-17 21:33:57 +01:00
0f1ae28bf0 - new patchinfo is now default on server, old format not anymore supported on purpose.
So removing the switch is also on purpose to make people aware of it.
2011-11-11 10:51:24 +01:00
Marcus Huewe
0973931793 - rewrote b190f27d00 (support "osc co --output-dir..." option)
The initial version was written by Ed Bartosh <eduard.bartosh@intel.com>
2011-11-02 21:05:10 +01:00
Marcus Huewe
17a5242110 Revert "implemented --output-dir command line option"
This reverts commit b190f27d00.

Do not use "pathname" for this. Its sole purpose is to print out the
"correct" pathname to the user.

The code broke the Project's class update mechanism
2011-11-02 21:05:09 +01:00
eac124f9f6 - support source cleanup on maintenance incidient requests 2011-10-31 12:06:52 +01:00
Ed Bartosh
b190f27d00 implemented --output-dir command line option 2011-10-10 17:06:58 +02:00
fade823e06 - exclude also nosrc.rpm on getbinaries 2011-10-09 11:23:00 +02:00
Marcus Huewe
7995613991 - revert 3834263171
- fixed "parse_repoarchdescr": don't ignore repo if the repo name is a
  supported arch name
2011-09-30 14:57:03 +02:00
3834263171 - fix building with "osc build $REPO $ARCH" 2011-09-30 14:26:58 +02:00
da7445c192 - become curl compatible, switch to "PUT" method when using -T upload file parameter 2011-09-23 12:11:14 +02:00
d3dd8539d9 - fallback to "build --local-package" if it does not exist instead of complaining 2011-09-12 16:15:19 +02:00
Ruediger Meier
9c004acf34 - re-add but ignore deprecated option --skip-validation
Doing this to not brake scripts where this option is used.
This Patch is a follow-up of
568612ce "- drop hardcoded source validator executions"
which has not been released yet.
2011-09-11 17:13:32 +02:00
Marcus Huewe
27ca263d37 - do_revert: added note again which was removed in the previous commit (only affects the docstring) 2011-09-09 19:55:19 +02:00
Ruediger Meier
57329183d1 osc revert, how to do it?
On Friday 09 September 2011, Marcus Hüwe wrote:
> > Is this the supposed behavior?
>
> No - I just fixed it in git master.

Thx!

BTW
even I've investigated it for svn (because osc may supposed to be similar).
But the misbehavior is the same there. Do you think that's a bug in svn too?
At least svn reverts completely when doing
svn revert -R .

Probably would be also nice to say something about it in osc revert --help,
e.g. like this

From 3fa9bb1ac29c623f8ee24f435e7eebd073273e1a Mon Sep 17 00:00:00 2001
From: Ruediger Meier <ruediger.meier@ga-group.nl>
Date: Fri, 9 Sep 2011 19:08:50 +0200
Subject: [PATCH] - do_revert: add help msg about reverting wc entirely
2011-09-09 19:53:40 +02:00
Marcus Huewe
5007751215 - do_revert: also revert added files by default 2011-09-09 17:37:01 +02:00
Marcus Huewe
30ba376302 - do_build: also consider "local_service_run" config option 2011-09-07 16:53:11 +02:00
Marcus Huewe
3683d9550d - added "local_service_run" config option
can be used to permanently disable the local service run on commit
(default: enabled)
2011-09-07 15:19:54 +02:00
568612cedc - drop hardcoded source validator executions 2011-09-07 13:55:05 +02:00
Sascha Peilicke
3619f392a0 Reopening reviews only works for requests in state 'new' or 'review' 2011-08-18 16:02:34 +02:00
Michal Marek
c7e5819b7c Do not check for untracked files before commit
This duplicates the work of the source validator and is just annoying.

Suggested-by: Michal Vyskocil <mvyskocil@suse.cz>
Signed-off-by: Michal Marek <mmarek@suse.cz>
2011-08-16 11:33:56 +02:00
0ba9383e17 - checkout of entire project is skipping packages which links to project local packages by default. 2011-07-20 17:27:05 +02:00
1630792e21 - fix DISTURL help 2011-07-20 17:17:56 +02:00
dce5c8b4fc - show created incident project 2011-07-19 18:05:32 +02:00
Sascha Peilicke
438569f821 PEP8-ified parts of the code.
Exchange individual return statements with a finally statement in the
big try/except statement in babysitter.py. If you return a different
value in the 'except' clause, it takes precedency over the 'finally'
clause (finally is executed before returning, naturally).
2011-07-08 16:09:44 +02:00
Sascha Peilicke
6676d530bc Give some status output if request list was empty.
Either there where no requests or the project didn't exist.
Fixes bnc#543999
2011-07-08 15:11:17 +02:00
Sascha Peilicke
93f87c9838 Honor '-p' and '-P' parameters in request list command.
Fixes bnc#703586
2011-07-07 10:12:57 +02:00
e6f631ebe8 - crash fix on maintenance incident creation with given project 2011-06-27 14:37:08 +02:00
Sascha Peilicke
0de8953952 Revert "Align --no-service commit command parameter to build command param"
This reverts commit d22b2a6523.
We have not yet decided on how to best align the names of
service-related optional arguments.
2011-06-17 11:02:57 +02:00
Sascha Peilicke
d22b2a6523 Align --no-service commit command parameter to build command param
style.
2011-06-16 12:06:03 +02:00
881641d479 - do not run source services on local packages or offline builds, but warn about that 2011-06-15 14:17:33 +02:00
eb6a42713d - fix broken update after commit with service run
- fix up -S on unexpanded checkouts
2011-06-09 17:22:49 +02:00
Petr Uzel
95febe963b osc co: print help instead of crashing if no arguments are given
This fixes:

~> osc checkout
Traceback (most recent call last):
  File "/usr/bin/osc", line 21, in <module>
    r = babysitter.run(osccli)
  File "/usr/lib/python2.7/site-packages/osc/babysitter.py", line 52, in run
    return prg.main()
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 310, in main
    return self.cmd(args)
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 333, in cmd
    retval = self.onecmd(argv)
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 449, in onecmd
    return self._dispatch_cmd(handler, argv)
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 1179, in _dispatch_cmd
    return handler(argv[0], opts, *args)
  File "/usr/lib/python2.7/site-packages/osc/commandline.py", line 3386, in do_checkout
    m = re.match(r"obs://([^/]+)/(\S+)/([^/]+)/([A-Fa-f\d]+)\-(\S+)", args[0])
IndexError: tuple index out of range

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-06-08 14:59:12 +02:00
Michal Čihař
c14f81c1f2 Fix spelling 2011-06-08 12:10:47 +02:00
a6716337f5 - add the --meta handling also to list, cat and less commands 2011-06-08 10:25:15 +02:00
9d6da6700e - fix error message 2011-06-06 14:43:01 +02:00
946ac03dae - add 'requestbugownership' command for setting the bugowner via request 2011-06-01 09:50:30 +02:00
Vincent Untz
3dca0702c5 osc pdiff ("parent diff") 2011-05-30 13:19:19 +02:00
21bb30325e - do not search for requests, if one got specified via -s parameter 2011-05-26 17:13:06 +02:00
48fc059e0b - fix changelog comments take over to commit log 2011-05-26 16:39:40 +02:00
8dd0d9f8e3 - rdelte and undelete operate with history comment now 2011-05-26 10:21:14 +02:00
593acbb843 - run source services always verbose on "osc build" 2011-05-25 13:45:54 +02:00
48a8fa144f - support for local defined source services during commit. Move old validation and trylocal source service run into commit function 2011-05-25 13:34:32 +02:00
c00751f4d7 - handle errors of source service runs 2011-05-24 10:49:08 +02:00
0a7492cdf8 - fix description of rdelete commands and make a difference to enforce it on server side or to ignore the content. Famous rm -rf command exists now :) 2011-05-23 20:43:35 +02:00
22e4047005 - support the new source service file mode of OBS 2.3 Beta 2 2011-05-23 15:26:13 +02:00
3408f57078 - use merged srcmd5sum as default revision on submit request creation, if link target is not submit target.
This allows to create multiple submit requests from same source, if one of them is to the link target.
  Otherwise merge conflicts will occur
2011-05-19 17:11:37 +02:00
704199f279 - support to create hidden project on "branch" and "createincident" commands 2011-05-04 12:11:24 +02:00
3e4424d222 - block creating submit requests when a source service is still running (OBS 2.3 only) 2011-05-02 15:28:44 +02:00
acbbbacabd - add "createincident" command 2011-05-02 13:22:56 +02:00
Marcus Huewe
5e74d75acf - fixed print statement calls 2011-04-29 20:29:07 +02:00
Michal Čihař
4f4e90bafc Fix various typos 2011-04-28 11:14:38 +02:00
a6ecdbaa1d - "review accept/decline" is trying to change all reviews of a requests, if a specific one is not specified by user.
- do not always implicit add by_user on reviews.
- remove default to set a user himself as reviewer (makes no sense)
2011-04-26 17:21:40 +02:00
Marcus Huewe
023a2426d9 - osc rq show <id> -d: store tmpfile with suffix ".diff" (for syntax highlighting)
- run_pager: added optional "tmp_suffix" parameter
2011-04-24 00:27:47 +02:00
4d11387b14 - "my requests" is showing requests with open reviews also now 2011-04-20 16:54:10 +02:00
Ludwig Nussel
244e9b0baf make abortbuild parameters work like rebuild 2011-04-20 14:12:59 +02:00
Juergen Weigert
21d96a4a17 added new command: osc who [login] 2011-04-11 20:48:59 +02:00
Juergen Weigert
022578925b osc ls . (shortcut for PROJECT PACKAGE from current dir.) 2011-04-11 15:07:56 +02:00
Juergen Weigert
b7328b6adf get_api_url() diagnostics now includes ESTALE. 2011-04-06 15:31:36 +02:00
David Greaves
acbf21f7db ci now accepts "-F -" as stdin 2011-03-30 22:33:30 +01:00
Juergen Weigert
7203a8f9ab fixed url of the plugin 2011-03-24 15:20:51 +01:00
Juergen Weigert
8e9cf75d7b do_install now points to home:jnweiger osc-plugin-install 2011-03-24 13:56:37 +01:00
38f665eef8 - handle missing or wrong service commands with a valid error 2011-03-22 10:21:48 +01:00
Juergen Weigert
feb731e3c0 Added 'env OSC_PLUGIN_FAIL_IGNORE=1 osc ...'
Otherwise a failing plugin prevents us from seeing even a usage.
2011-03-21 18:53:05 +01:00
Marcus Huewe
02726a6a07 - set_link_rev: minor cleanup; baserev always implies expand=True
also renamed "xsrcmd5" keyword argument to "expand"
2011-03-21 16:57:22 +01:00
13633ab0e7 - do not list "localrun" anymore, it can't work in all circumstances 2011-03-21 09:48:05 +01:00
Juergen Weigert
25d6c66aa9 Better advertise getpac_default_project in the online help of 'osc branch' 2011-03-17 18:48:20 +01:00
4f8bedf998 - do not try to merge generated _service: files on pull 2011-03-17 15:35:22 +01:00
c859fc5430 - allow to force the storage of project meta data (to ignore depending repositories for example) 2011-03-16 10:20:50 +01:00
adbd54045c - follow renamed attribute to OBS:MaintenanceProject 2011-03-11 11:07:35 +01:00
Juergen Weigert
64f9dca08b Allow conf.config['getpac_default_project'] to be a list.
Added find_default_project() to process this list.
2011-03-09 16:10:48 +01:00
Marcus Huewe
9396d9c34d - do_develproject: small cleanup + fixes 2011-03-08 19:47:54 +01:00
Juergen Weigert
cb534d09b6 - new command 'develproject' to print the devel project from the package meta. 2011-03-08 19:23:04 +01:00
Juergen Weigert
b5f234f59d Merge branch 'master' of gitorious.org:opensuse/osc 2011-03-08 18:50:32 +01:00
Juergen Weigert
4a3a071c41 fixed osc co proj pack file, which took great effort in following a link
without applying a project.diff -- now it merges correctly.
2011-03-08 18:48:00 +01:00
281f6dd0ca - add also simple maintenance release request command 2011-03-07 19:45:44 +01:00
Marcus Huewe
45a7a84967 - do_maintenancerequest: cleanup 2011-03-07 13:08:44 +01:00
87b060e9a3 - add "maintenancerequests" command to request a maintenance incident from maintenance team 2011-03-07 11:46:51 +01:00
402ce3a626 - stay backward compatible with pathinfo command. This default will switch, when we switch to new
maintenance modell on api.opensuse.org
2011-03-07 09:51:16 +01:00
1db5eea95c - do not show requests by default, where I am not responsible right now (waiting for review of other people) 2011-03-07 09:22:13 +01:00
Juergen Weigert
e8aa7df530 osc rdelete now warns, if requests are pending. 2011-03-05 20:08:47 +01:00
b2adcb7d94 - do not crash on maintenance release or incident requests 2011-03-04 15:50:06 +01:00
Juergen Weigert
b618d16f62 Giving hint at 'osc my sr', if 'osc my rq' returns nothing.
These two are easy to confuse.
2011-03-03 16:31:33 +01:00
Ludwig Nussel
60d054317c meta data diff 2011-03-03 10:07:58 +01:00
Marcus Huewe
70e224a007 - print_repos: added exc_class and exc_msg parameters to specify the exception class + exception msg
- do_getbinaries: print correct error message
2011-03-02 14:38:24 +01:00
Marcus Huewe
ba1fe8ab80 - do_getbinaries: fail if repo doesn't exist 2011-03-02 14:26:24 +01:00
468106e19d double the default for "buildlogtail", kiwi failures are usually not in the last line unfortunatly 2011-02-27 14:21:38 +01:00
87d95409ec - avoid unwanted entire project rebuilds 2011-02-22 22:44:46 +01:00
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