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

399 Commits

Author SHA1 Message Date
Marcus Hüwe
8f2a3b7580 - renamed OpenSUSE to openSUSE (I think that's the correct spelling atm) 2009-06-17 18:19:45 +00:00
Michal Cihar
a574dbb3aa Add proper escaping of - in man page. 2009-06-17 09:28:10 +00:00
Michal Cihar
2af8cbbf7e Missing preposition. 2009-06-16 13:31:11 +00:00
4c60d1b285 rename "rebuildpac" to "rebuild", but keep "rebuildpac" as alias.
This command works also for whole projects and we get rid of another
place of pac/pkg statements.
2009-06-15 15:38:39 +00:00
60ecca1dc1 new osc linkpac -f to allow to override existing _link files, patch by
Michael Meeks
2009-06-15 15:19:16 +00:00
Michal Vyskocil
b611ddb00b do not produce traceback if list of platforms is empy 2009-06-11 11:38:06 +00:00
Michal Vyskocil
d85d38f613 smarter default platform for osc build 2009-06-11 11:32:58 +00:00
Dr. Peter Poeml
8aadd6e400 osc search: shorten the if branch by eliminating the late else. No functional
change should result from this.
2009-06-09 17:07:02 +00:00
Dr. Peter Poeml
51726bb28b osc search: sort search results. 2009-06-09 17:04:31 +00:00
Dr. Peter Poeml
4c73a41e7b osc update:
- Sort the list of packages before updating. This makes it easier, when
  updating a project with many packages, to follow progress.
2009-06-09 09:34:25 +00:00
Marcus Hüwe
7e76a8c269 - do_submitrequest: only support create otherwise if we call e.g. "osc sr list <project> a new submitrequest will be created (instead of listing the reqs for <project>) 2009-06-05 21:45:29 +00:00
9ef41fde95 fix usage of correct api when calling "osc results" without parameters 2009-06-05 06:13:08 +00:00
dccc2d41cb add more warnings, pointing user to new syntax 2009-06-05 05:46:20 +00:00
5de58e99e2 disable "osc req" for now to point people to the change 2009-06-04 15:20:25 +00:00
b556208cd4 rename "req" command to "api".
req clashes with request command and this command is not intended for
usual user usage.
2009-06-04 14:14:01 +00:00
9050882b78 sync help with default function name 2009-06-03 07:43:37 +00:00
dc81d5f278 new request syntax as proposed on ml.
will roll a beta version from this later today for more feedback.
2009-06-02 14:57:42 +00:00
46d726133c import new request handling from branch:
- New generic "request" command:
  - new "delete" request
  - new "change_devel" request
  - Multiple actions in one request is not yet supported by osc
2009-06-02 13:14:46 +00:00
Michal Vyskocil
0158d5e377 call buildvc with all command line arguments 2009-06-01 12:20:53 +00:00
Michal Vyskocil
ee9ae8dcb1 do not pass '' with commit message 2009-06-01 12:16:17 +00:00
Pavol Rusnak
53eb08ffa3 don't wipe all binaries by default, --all is needed now 2009-05-31 11:00:03 +00:00
Michal Cihar
51228e2e22 Fix few typos in help texts. 2009-05-27 12:09:50 +00:00
Pavol Rusnak
81b8de831c unify log/rlog , prjresults/rprjresults, results/rresults (r-versions are obsoleted now) 2009-05-25 11:33:04 +00:00
Pavol Rusnak
17cec67b98 take project and package from .osc in rlog and rresults 2009-05-25 10:41:16 +00:00
Pavol Rusnak
776a069df9 add binary flag to open where needed 2009-05-22 15:00:31 +00:00
Michal Vyskocil
5f19030580 rbuildlog alias for remotebuildlog command 2009-05-21 12:05:39 +00:00
Michal Vyskocil
51f0ef2ae0 fixed IndexError in commandline.py:996 when linked to project without 'branches:' in name 2009-05-21 09:13:34 +00:00
Pavol Rusnak
7406d0ed34 added diff -c option (show change of revision X = diff -r X-1:X) 2009-05-18 14:50:43 +00:00
Marcus Hüwe
eeba81ad26 - fix for older python versions 2009-05-17 13:07:55 +00:00
Marcus Hüwe
b5b04124c4 - LinkExpandError inherits from PackageError (display affected project and package in error message) 2009-05-15 19:08:14 +00:00
Marcus Hüwe
815ca58dc8 - cosmetic: save one level of indention 2009-05-15 15:32:15 +00:00
Dominique Leuenberger
f97f287ce7 Extend submitreq list with new optional parameter -M. When given, it will limit the list to the user's own requests. 2009-05-15 12:41:27 +00:00
Pavol Rusnak
121b20c63c more fixes for Windows port 2009-05-15 11:40:50 +00:00
Michal Vyskocil
b6246d7695 --xml output for results and rresults command, results_meta is obsoleted 2009-05-15 09:24:53 +00:00
Michal Vyskocil
4676bd6ddf added default=[] for -r and -a options in all results commands 2009-05-15 08:48:32 +00:00
Michal Cihar
e12100fc48 osc search can now output CSV 2009-05-15 08:33:25 +00:00
Michal Cihar
0d3a98ce5b "involved projects" is not really good description of this 2009-05-15 08:07:03 +00:00
Michal Vyskocil
011426d885 -r|--repo and -a|--arch options for results, rresults and results_meta commands 2009-05-15 07:16:26 +00:00
0648a8c555 - new option for copypac
* -r to specify source revision                                                             
  * -m to specify a comment (and send default comment if not specified)
mmeeks, jpr: this is for you :)
2009-05-14 11:50:53 +00:00
2c42287a98 Add support to get build logs starting from a given offset
(from Ming Xi Wu)
2009-05-14 11:09:26 +00:00
Michal Cihar
0f3c3d8eaf new jobhistory/buildhistory output format (CSV) 2009-05-13 09:04:27 +00:00
Michal Cihar
63590a80be new log/rlog output formats (CSV and XML) 2009-05-13 08:53:32 +00:00
Michal Cihar
92ff8996d4 osc linkpac can not specify cicount attribute 2009-05-13 07:59:01 +00:00
Pavol Rusnak
7c27fac55e add 'ar' alias for addremove command 2009-05-11 13:21:33 +00:00
Michal Cihar
7074362e90 osc can now store credentials in Gnome keyring if it is available (bnc#460540) 2009-05-11 07:46:01 +00:00
Marcus Hüwe
72532fb016 - rresults: allow arguments which a separated by a "/" (e.g. prj/pkg) 2009-05-10 20:29:34 +00:00
Marcus Hüwe
287d8c2fbd - move check to the correct place (otherwise args[0] might lead to an IndexError exception) 2009-05-07 19:41:02 +00:00
Marcus Hüwe
2baad18f1f - use list comprehensions instead of map/lambda (this is more pythonic:) ) 2009-05-07 19:13:50 +00:00
Marcus Hüwe
dffa7317eb - small fixes (target_package and target_prj were referenced but in some cases there was no assignment before) 2009-05-07 18:43:04 +00:00
Michal Cihar
e5563bcaa4 Move osc specific bits to commandline module. 2009-05-06 13:20:15 +00:00
Dr. Peter Poeml
09b50649ea fix typo introduced in r7243 2009-05-06 10:08:08 +00:00
Michal Cihar
85293d8770 plugins now should be placed in /usr/lib/osc to match FHS (the /var path is still supported though) 2009-05-05 14:21:56 +00:00
Michal Cihar
a02e40f273 Print help in more standard form so that help2man can parse it (bnc#471888). 2009-05-05 14:13:22 +00:00
Michal Cihar
aedeea317c Drop shebang line from modules (bnc#500971).
(Some did have it and some did not, this way it is consistent and they
are anyway not supposed to be executed directly.)
2009-05-05 14:11:25 +00:00
3df88ab765 Consolidating delete commands:
* obsolete deletepac and deleteprj to delete and rdelete commands.
  - enable package tracking by default
* add support to hide commands in help list (so we can show propper
  help when people still try to use it).
seife: this is for you, drop your own scripts emulating it :)
2009-05-04 19:07:05 +00:00
Michal Vyskocil
ad88054cf8 osc submitreq create DESTPRJ [DESTPKG] 2009-05-04 12:53:03 +00:00
51f941886c Allow pulling conflicting changes from another project via "osc
repairlink"
2009-05-04 09:13:35 +00:00
Michael Schröder
38446b0749 - clean up files if diff3 did the job
- first try baserev before querying lastworking
2009-04-27 10:09:38 +00:00
Brandon Philips
4a924553b2 Cleanup usage information on osc co PACKAGE
The usage information on osc co PACKAGE was a bit confusing and one of
the descriptions was inaccurate. Remove the inaccurate description and
improve the language on the clearer one.
2009-04-23 23:59:40 +00:00
Brandon Philips
415143d548 Restore osc co -c feature after commit r7103
Commit r7103 broke the osc co -c feature to checkout a package to the
current directory. Restore it.
2009-04-23 23:57:59 +00:00
Michael Schröder
54300936f0 - don't diff binary files 2009-04-23 09:03:59 +00:00
630084b582 * harmonize parameters of repairlink with other commands 2009-04-23 08:58:21 +00:00
Marcus Hüwe
f15d1dd57e - get the correct apiurl user 2009-04-22 17:38:14 +00:00
Michal Vyskocil
a49d15edbd just edit option for buildvc and osc vc commands, used /usr/lib/build/vc in osc vc 2009-04-22 14:44:17 +00:00
Michael Schröder
90cb8163b6 - fix test for modified files
- print message after the repairlink commit
- destroy upload revision if commit fails
- use "latest" when revision is not specified
2009-04-22 13:14:17 +00:00
7c423392e1 yet another place where wrong apiurl is used for getbinaries 2009-04-22 12:42:52 +00:00
9dfaf611f3 * revert rev=latest change, let mls do it right in all places.
* add hint to use "osc repairlink" on failed operations with links
* use correct target project and package name on repairlink
2009-04-22 12:32:29 +00:00
Michal Vyskocil
17cd24bb57 list view for osc submitreq show 2009-04-22 11:02:32 +00:00
Michael Schröder
f8f0ae8a55 - expand tabs
- use some core functions
- give user a hint what to do
- add NEWS
2009-04-22 09:06:13 +00:00
Michael Schröder
9dbfeeb2ef - add 'osc repairlink' command
- pass revision correctly so that 'osc co' can checkout
  an old revision again
2009-04-21 16:52:26 +00:00
b8642c4ee0 make getbinaries working in checked out directories 2009-04-21 09:46:32 +00:00
Michal Vyskocil
0bf3540cb2 osc vc command - uses a /usr/bin/buildvc from build.rpm 2009-04-20 13:40:33 +00:00
b7ea9b64c0 revert a senseless part of last commit 2009-04-17 12:04:45 +00:00
89e2e73dca - allow to specify target project and package on osc branch (requires
server version 1.6)
- add option to automatic checkout a branched package
2009-04-17 12:02:02 +00:00
65f540161f just make it more robust, use the same variable for local dir. 2009-04-17 08:48:22 +00:00
20f8234d8c support checkout of single packages via "osc co PACKAGE" when local dir
is a project dir.
2009-04-17 08:39:04 +00:00
Brandon Philips
6f99610590 osc: add -c flag to checkout PACKAGE dir in cwd instead of PROJECT/PACKAGE
A simple solution to the colons in project names messing up LD_LIBRARY_PATH:
http://lists.opensuse.org/archive/opensuse-buildservice/2008-12/msg00166.html

Example use:

$ osc co -c openSUSE:Factory osc
A    $PWD/osc/debian.changelog
A    $PWD/osc/debian.tar.gz
A    $PWD/osc/osc-0.113.tar.gz
A    $PWD/osc/osc.changes
A    $PWD/osc/osc.dsc
A    $PWD/osc/osc.spec
A    $PWD/osc/ready

Versus without -c

$ osc co openSUSE:Factory osc
A    $PWD/openSUSE:Factory/osc/debian.changelog
A    $PWD/openSUSE:Factory/osc/debian.tar.gz
A    $PWD/openSUSE:Factory/osc/osc-0.113.tar.gz
A    $PWD/openSUSE:Factory/osc/osc.changes
A    $PWD/openSUSE:Factory/osc/osc.dsc
A    $PWD/openSUSE:Factory/osc/osc.spec
A    $PWD/openSUSE:Factory/osc/ready


Signed-off-by: Brandon Philips <bphilips@suse.de>
2009-04-16 17:41:47 +00:00
Michal Vyskocil
41eb9614f0 commit message template
New functions:
osc.core.get_commit_message_template()
    - check the differences in .changes
    - extract them and add to the commit message
osc.core.dgst_from_string():
    - same as dgst, but work with string argument


Modified functions:
osc.core.edit_message():
    - new optional argument template
osc.commandline.do_commit():
    - use get_commit_message_template to collect the changes and call the
      edit_message with template argument
osc.core.edit_message():
    - used dgst_from_string for header_orig value, so commit message could be
      used as is with template. Used a mtime check for canceling support.
      TODO: maybe is dgst_from_string unecessary
2009-04-16 13:48:37 +00:00
e6815fc177 * use correct api url in checked out packages on setlinkrev command.
* make error message better matching reality
2009-04-16 08:13:55 +00:00
Marcus Hüwe
16f99519ed - oops r7028 broke "osc search" 2009-04-15 17:30:13 +00:00
Marcus Hüwe
8282e232d8 - added streamfile() method
- print_buildlog: use streamfile() to retrieve the buildlog
- do_cat: use streamfile() to retrieve a file - there's no need to have a tempfile or to read the entire file into memory anymore
2009-04-09 15:52:59 +00:00
Marcus Hüwe
92759ad082 - SubmitReq class: replaced src_md5 attribute with src_rev
- use plain revision numbers instead srcmd5's when creating a submitrequest
2009-04-09 13:02:19 +00:00
Marcus Hüwe
7cad7f99c6 - small fixes for the last commit (r7055) (I hope it doesn't break anything..) 2009-04-09 11:44:32 +00:00
d547203c12 - support listings of older revisions with "osc ls -R"
- add --current parameter for linkpac to use current revision of source
  package fixed.
- add osc setlinkrev to add or update revision number in links easily
- fix streaming of binary files via "cat" (#493325)
2009-04-09 08:21:12 +00:00
c298692e68 add linkpac --current paramter to create links with revision number
included.
2009-04-08 11:48:34 +00:00
Marcus Hüwe
17327a3db9 --exact is more appropriate than --enable-exact (requested by darix) 2009-04-07 18:45:42 +00:00
Marcus Hüwe
68f5d72061 - fix for #492369 ("no warning on failed osc expansion") 2009-04-06 20:08:14 +00:00
Marcus Hüwe
d6c9693a47 --apiurl can be an alias 2009-03-31 13:29:16 +00:00
Marcus Hüwe
9ff9a1f151 - fixed #487400: --disable-debuginfo will create no debuginfo packages and --debuginfo will create them. Both override the debuginfo element from the buildinfo 2009-03-31 11:45:30 +00:00
Marcus Hüwe
b910253bed - added --expand option to 'osc ls' 2009-03-30 22:28:26 +00:00
Marcus Hüwe
4ed272b2a2 - fixed #490023: add --expand option to copypac 2009-03-30 22:17:18 +00:00
Marcus Hüwe
5e16d98edd - fixed #472831 ("missing apisrv in branch command") 2009-03-23 19:08:06 +00:00
Marcus Hüwe
7cd12cb501 - fixed #462389 ("Ask for commit before creating a new submitreq") 2009-03-22 16:04:19 +00:00
Marcus Hüwe
e5ff09152d - be a bit more verbose and tell the user about the package tracking feature 2009-03-16 21:29:42 +00:00
Marcus Hüwe
ce8027fc14 - partly fix #478516: copypac: added --keep-develproject option 2009-03-11 15:23:23 +00:00
Dr. Peter Poeml
be4f2b031f Putting names at the top of files is is not recommended. Collective wisdom for
fostering open source contributions says that it can discourage contribution by
conveying a false sense of "code ownership". Marking territory is negatively
affecting collaboration.  See http://www.youtube.com/watch?v=ZSFDm3UYkeE
2009-03-02 14:03:06 +00:00
Marcus Hüwe
caae2bc8a1 - cleaned up the conf module (I hope I didn't break anything):
* basically get rid of the scheme and apisrv mess - instead directly use the apiurl (== <protocol>://<host>) for everything
  * some other minor cleanups here and there
  * everyone who has a scheme or apisrv entry in his ~/.oscrc will get a deprecation warning but it's still working (at some point in the future we might remove these code paths)
  * when writing a new ~/.oscrc store the apiurl in the conffile [fixes #478054]
- while being at it:
  * fixed #478054 ("osc asks for build.o.o credential even if -A<somelocalapi> is always used")
  * fixed #478052 ("osc backtrace on password entry (first startup)")
2009-02-23 23:29:32 +00:00
b43d67093b fix error messages, kiwi files are also allowed as build description. 2009-02-23 14:59:10 +00:00
3cc1a12e60 add -l lastbuild option also to local results command 2009-02-23 12:25:56 +00:00
7a9970473f import a fix from mls for getting product builds working.
(Adapted to my changes from an hour ago)
2009-02-20 15:01:16 +00:00