- add diff3 merge support. Locally modified files are merged with upstream changes
[opensuse:osc.git] / README
1 osc -- opensuse-commander with svn like handling
2
3
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/
6
7
8 INSTALLATION:
9
10 RPM packages are here (yum repository):
11 http://software.opensuse.org/download/repositories/openSUSE:Tools/
12
13 To install from svn, do
14         python setup.py build
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
18
19 Alternatively, you can directly use osc-wrapper.py from the source dir
20
21
22 The program needs the following python packages installed (that's their names
23 on SUSE anyway): 
24         pyxml 
25         python-elementtree
26
27
28
29
30 CONFIGURATION:
31
32 osc uses authentication data if it finds it in .netrc, otherwise it will ask
33 for username/password once, and store it in ~/.oscrc.
34
35
36
37 USAGE EXAMPLES:
38
39 osc ls                          # list projects
40 osc ls Apache                   # list packages in a project 
41 osc ls Apache subversion        # list files of package of a project
42
43 # check out 
44 osc co Apache                   # entire project
45 osc co Apache subversion        # a package
46 osc co Apache subversion foo    # single file
47
48 # update working copy
49 osc up
50 osc up <directory>
51 osc up *                        # from within a project dir, update all packages
52
53 # check in
54 osc ci                          # current dir
55 osc ci <dir>
56 osc ci file1 file2 ...
57
58 # show status
59 osc st
60 osc st <directory>
61 osc st file1 file2 ...
62
63 # initialize a source directory to be a 
64 # working copy of project <prj> package <pac>
65 osc init <prj> <pac>
66
67 # schedule files foo to be added / deleted
68 osc add file1 file2 ...
69 osc rm file1 file2 ...
70
71 # add all unknown files AND remove all missing files
72 osc addremove
73
74 # show diff
75 osc diff                        # current dir
76 osc diff file1 file2 ...
77
78 # show build results (xml)
79 osc results
80 osc results [platform]
81
82 # show logfile (must be run from workingdir)
83 osc log <platform> <arch>
84
85 # show platforms
86 osc platforms
87 # show platforms used by project Apache
88 osc platforms Apache
89
90 # show various xml meta
91 osc meta Apache
92 osc meta Apache subversion
93 osc id username
94
95
96
97
98 HINT FOR W3M USERS
99
100 Putting the following in the file ~/.w3m/passwd will make
101 w3m know the credentials for the buildservice servers:
102
103 """
104 host api.opensuse.org
105   port 80
106   realm Authentication required
107   login foo
108   password bar
109
110 host build.opensuse.org
111   port 80
112   realm openSUSE Build Service
113   login foo
114   password bar
115 """
116
117 chmod 0600 ~/.w3m/passwd