2006-04-20 16:26:50 +02:00
|
|
|
osc -- opensuse-commander with svn like handling
|
|
|
|
|
|
|
|
>>> BUG: at the moment, 'up' overwrites files with
|
|
|
|
local modifications.
|
|
|
|
|
|
|
|
|
2006-04-20 16:31:24 +02:00
|
|
|
Please send patches to poeml@suse.de, or work directly on
|
|
|
|
https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/clientlib/python/osc/
|
2006-04-20 16:26:50 +02:00
|
|
|
|
|
|
|
|
2006-04-20 16:31:24 +02:00
|
|
|
INSTALLATION:
|
2006-05-10 16:47:27 +02:00
|
|
|
|
|
|
|
python setup.py build
|
|
|
|
python setup.py install
|
|
|
|
# create a symlink 'osc' in your path pointing to osc.py.
|
|
|
|
ln -s osc-wrapper.py /usr/bin/osc
|
|
|
|
|
|
|
|
Alternatively, you can directly use osc-wrapper.py from the source dir
|
|
|
|
|
|
|
|
|
|
|
|
The program needs the following python packages installed (that's their names
|
|
|
|
on SUSE anyway):
|
|
|
|
pyxml
|
|
|
|
python-elementtree
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CONFIGURATION:
|
2006-04-20 16:26:50 +02:00
|
|
|
|
|
|
|
For authentication, put your account data into your ~/.netrc file, like this
|
|
|
|
line:
|
|
|
|
machine api.opensuse.org login $login password $pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-04-20 16:31:24 +02:00
|
|
|
USAGE EXAMPLES:
|
2006-04-20 16:26:50 +02:00
|
|
|
|
|
|
|
osc ls # list projects
|
|
|
|
osc ls Apache # list packages in a project
|
|
|
|
osc ls Apache subversion # list files of package of a project
|
|
|
|
|
|
|
|
# check out
|
|
|
|
osc co Apache # entire project
|
|
|
|
osc co Apache subversion # a package
|
|
|
|
osc co Apache subversion foo # single file
|
|
|
|
|
|
|
|
# update working copy
|
|
|
|
osc up
|
2006-04-24 14:04:20 +02:00
|
|
|
osc up <directory>
|
2006-04-20 16:26:50 +02:00
|
|
|
|
|
|
|
# check in
|
|
|
|
osc ci # current dir
|
|
|
|
osc ci <dir>
|
|
|
|
osc ci file1 file2 ...
|
|
|
|
|
|
|
|
# show status
|
|
|
|
osc st
|
|
|
|
osc st <directory>
|
|
|
|
|
|
|
|
# initialize a source directory to be a
|
|
|
|
# working copy of project <prj> package <pac>
|
|
|
|
osc init <prj> <pac>
|
|
|
|
|
|
|
|
# schedule file foo to be added / deleted
|
|
|
|
osc add foo
|
|
|
|
osc rm foo
|
|
|
|
|
|
|
|
# add all unknown files and remove all missing files
|
|
|
|
osc addremove
|
|
|
|
|
|
|
|
# show diff
|
|
|
|
osc diff [file]
|
|
|
|
|
2006-04-25 18:19:42 +02:00
|
|
|
# show build results (xml)
|
|
|
|
osc results
|
|
|
|
osc results [platform]
|
|
|
|
|
2006-04-20 16:26:50 +02:00
|
|
|
# show logfile (must be run from workingdir)
|
|
|
|
osc log <platform> <arch>
|
|
|
|
|
|
|
|
# show platforms
|
|
|
|
osc platforms
|
|
|
|
# show platforms used by project Apache
|
|
|
|
osc platforms Apache
|
|
|
|
|
|
|
|
# show various xml meta
|
|
|
|
osc meta Apache
|
|
|
|
osc meta Apache subversion
|
|
|
|
osc id username
|
|
|
|
|