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

1602 Commits

Author SHA1 Message Date
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
Marcus Huewe
83d1883c35 - delete_file: added special handling for skipped files
if a local file exists and is marked as skipped, simply delete this file
otherwise do nothing
2011-01-17 15:00:21 +01:00
Marcus Huewe
7b08d6c4a3 - Action: support for acceptinfo 2011-01-12 22:21:32 +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
a828b0be2e do not remove service files on commit, we only remove them on an update now 2011-01-07 21:30:41 +01:00
122679fb67 fix service execution when _service file got not yet commited (but already added) 2011-01-07 14:41:55 +01:00
Michal Čihař
f8184165ed Drop plain text password from generated config file.
The passx is around for some time and it is not needed to put plaintext
into config file forever.
2011-01-07 09:48:34 +01:00
Michal Vyskocil
ef37e6b721 Drop pre_checking.sh (8ea5bc7) due security problems 2011-01-07 09:17:50 +01:00
7988624403 fix file duplications, cleanup possible existing service generated files before create new ones 2011-01-06 15:03:18 +01:00
Marcus Huewe
186d4ae4f7 - fix for 3892117558 2011-01-05 17:00:19 +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
Michal Marek
562c92d0d7 build: Fix for su-wrapper = su -c
su-wrapper = su -c has been broken since commit 5376580. Handle this
case so that people do not have to update their configs.

Signed-off-by: Michal Marek <mmarek@suse.cz>
2011-01-02 23:43:51 +01:00
Marcus Huewe
50ae7c7c24 - fix for my last commit... 2010-12-30 21:02:42 +01:00
Marcus Huewe
5bf59d2c60 - change_request_state_template: support tgt_project and tgt_package in template (for backward compatibility the dst_ prefix is still supported) 2010-12-30 20:58:00 +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
Marcus Huewe
b2838dd88d - rewrote Request class and friends
- rewrote Action class: instances only provide attributes for their specific type (for details see class doc).
  Renamed "dst_project" attribute to "tgt_project" and "dst_package" attribute to "tgt_package" (only affects
  types which have a <target /> element)
- added AbstractState class: Base class which represents state-like objects (<review />, <state />)
- rewrote ReviewState and RequestState classes
- rewrote Request class: apart from internal rewrites the format of the "__str__" and "list_view" methods
  slightly changed

Now it should be much easier to create new requests without constructing the
request xml by hand.
Example:
 r = Request()
 r.add_action('submit', src_project='foo', src_package='bar', tgt_project='targetprj', tgt_package='targetpkg')
 r.add_action('set_bugowner', tgt_project='foobar', person_name='buguser')
 r.add_action('delete', tgt_project='prj', tgt_package='deleteme')
 print r.to_str()
 ->
<request>
  <action type="submit">
    <source package="bar" project="foo" />
    <target package="targetpkg" project="targetprj" />
  </action>
  <action type="set_bugowner">
    <target project="foobar" />
    <person name="buguser" />
  </action>
  <action type="delete">
    <target package="deleteme" project="prj" />
  </action>
</request>
2010-12-30 02:30:37 +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
9a07995cc3 - fixed WorkingCopyInconsistent __init__ call 2010-12-23 02:17:19 +01:00
Marcus Huewe
d77f8919fe - Project.init_project: return Project object
- adjusted testcases
2010-12-23 02:15:58 +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
Marcus Huewe
f4d3648c8e - fix for 904754987c 2010-12-22 17:30:30 +01:00
Petr Uzel
197c10f661 Return argument to do_man back
Revert a part of b3c5204, the do_main has to have at least one
argument, unless following exception will appear

osc.cmdln.CmdlnError: incorrect argcount for do_man(): takes 1, must
take 2 for 'argv' signature or 3+ for 'opts' signature

Signed-off-by: Petr Uzel <puzel@suse.cz>
Signed-off-by: Michal Vyskocil <mvyskocil@suse.cz>
2010-12-22 13:29:52 +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
6cee3c99fa fix --define 2010-12-22 08:29:08 +01:00
Marcus Huewe
904754987c - "override" raw_input from __builtin__'s and interpret EOFError (ctrl-d) as user abort (raise oscerr.UserAbort) 2010-12-22 00:03:27 +01:00
Ludwig Nussel
046a2be24e never pass an empty superseded_by as that violates the schema 2010-12-21 14:20:43 +01:00
Ludwig Nussel
fb77b7b9f8 fix correct order in aggregate template 2010-12-21 14:12:14 +01:00
Ludwig Nussel
a854423e86 copypac: don't copy service generated files 2010-12-21 14:12:14 +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
Ludwig Nussel
72842a43c3 use sudo as default su wrapper 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