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
63 Upload change content, this does only work within package directories, but not in project directories currently.
66 osc ci file1 file2 ...
68 Show the status (which files have been changed locally)
71 osc st file1 file2 ...
73 Initialize a directory to be a working copy of an existing buildservice
74 package. (This is the same as checking out a package and then copying sources
75 into the directory. It does NOT create a new package.)
78 Mark files to be added or removed on the next 'checkin'
79 osc add file1 file2 ...
80 osc rm file1 file2 ...
82 Adds all new files in local copy and removes all disappeared files.
85 Generates a diff, to view the changes
86 osc diff # current dir
87 osc diff file1 file2 ...
89 Shows the build results of the package
91 osc results [platform]
93 Shows the log file from a package (you need to be inside a package directory)
94 osc log <platform> <arch>
96 Shows available platforms/build targets
99 Shows the configured platforms/build targets of a project
100 osc platforms <project>
102 Shows meta information
104 osc meta Apache subversion
112 Putting the following in the file ~/.w3m/passwd will make
113 w3m know the credentials for the buildservice servers:
116 host api.opensuse.org
118 realm Authentication required
122 host build.opensuse.org
124 realm openSUSE Build Service
129 chmod 0600 ~/.w3m/passwd