1 osc -- opensuse-commander with svn like handling
4 Please send patches to poeml@suse.de, or work directly on
5 https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/clientlib/python/osc/
10 RPM packages are here (yum repository):
11 http://software.opensuse.org/download/repositories/openSUSE:Tools/
13 To install from svn, do
15 python setup.py install
16 # create a symlink 'osc' in your path pointing to osc.py.
17 ln -s osc-wrapper.py /usr/bin/osc
19 Alternatively, you can directly use osc-wrapper.py from the source dir
22 The program needs the following python packages installed (that's their names
32 When you use it for the first time, it will ask you for your username and
33 password, and store it in ~/.oscrc.
35 If authentication data is found in .netrc, it will also be used.
41 To list existing content on the server
42 osc ls # list projects
43 osc ls Apache # list packages in a project
44 osc ls Apache subversion # list files of package of a project
47 osc co Apache # entire project
48 osc co Apache subversion # a package
49 osc co Apache subversion foo # single file
53 osc up [pac_dir] # update a single package by its path
54 osc up * # from within a project dir, update all packages
55 osc up # from within a project dir, update all packages
56 AND check out all newly added packages
58 If an update can't be merged automatically, a file is in 'C' (conflict)
59 state, and conflicts are marked with special <<<<<<< and >>>>>>> lines.
60 After manually resolving the problem, use
66 osc ci file1 file2 ...
68 Show the status (which files have been changed locally)
71 osc st file1 file2 ...
73 Mark files to be added or removed on the next 'checkin'
74 osc add file1 file2 ...
75 osc rm file1 file2 ...
77 Adds all new files in local copy and removes all disappeared files.
80 Generates a diff, to view the changes
81 osc diff # current dir
82 osc diff file1 file2 ...
84 Shows the build results of the package
86 osc results [platform]
88 Shows the log file from a package (you need to be inside a package directory)
89 osc log <platform> <arch>
91 Shows available platforms/build targets
94 Shows the configured platforms/build targets of a project
95 osc platforms <project>
97 Shows meta information
99 osc meta Apache subversion
102 Edit meta information
103 (Creates new package/project if it doesn't exist)
105 osc editmeta Apache subversion
111 Putting the following in the file ~/.w3m/passwd will make
112 w3m know the credentials for the buildservice servers:
115 host api.opensuse.org
117 realm Authentication required
121 host build.opensuse.org
123 realm openSUSE Build Service
128 chmod 0600 ~/.w3m/passwd