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

833 Commits

Author SHA1 Message Date
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