~ubuntu-branches/ubuntu/karmic/python-docutils/karmic

« back to all changes in this revision

Viewing changes to docs/dev/repository.txt

  • Committer: Bazaar Package Importer
  • Author(s): martin f. krafft
  • Date: 2006-07-10 11:45:05 UTC
  • mfrom: (2.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20060710114505-otkhqcslevewxmz5
Tags: 0.4-3
Added build dependency on python-central (closes: #377580).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
=====================================
 
2
 The Docutils_ Subversion Repository
 
3
=====================================
 
4
 
 
5
:Author: Felix Wiemann
 
6
:Contact: Felix.Wiemann@ososo.de
 
7
:Revision: $Revision: 4002 $
 
8
:Date: $Date: 2005-11-06 17:50:19 +0100 (Sun, 06 Nov 2005) $
 
9
:Copyright: This document has been placed in the public domain.
 
10
 
 
11
.. _Docutils: http://docutils.sourceforge.net/
 
12
 
 
13
.. contents::
 
14
 
 
15
Docutils uses a Subversion_ repository located at ``svn.berlios.de``.
 
16
Subversion is exhaustively documented in the `Subversion Book`_
 
17
(svnbook).
 
18
 
 
19
.. _Subversion: http://subversion.tigris.org/
 
20
.. _Subversion Book: http://svnbook.red-bean.com/
 
21
 
 
22
.. Note::
 
23
 
 
24
   While the repository resides at BerliOS, all other project data
 
25
   (web site, snapshots, releases, mailing lists, trackers) is hosted
 
26
   at SourceForge.
 
27
 
 
28
For the project policy on repository use (check-in requirements,
 
29
branching, etc.), please see the `Docutils Project Policies`__.
 
30
 
 
31
__ policies.html#subversion-repository
 
32
 
 
33
 
 
34
Accessing the Repository
 
35
========================
 
36
 
 
37
Web Access
 
38
----------
 
39
 
 
40
The repository can be browsed and examined via the web at
 
41
http://svn.berlios.de/viewcvs/docutils/.
 
42
 
 
43
 
 
44
Anonymous Access
 
45
----------------
 
46
 
 
47
Anonymous (read-only) access is available at ``svn://svn.berlios.de/docutils/``.
 
48
 
 
49
To check out the current main source tree of Docutils, type ::
 
50
 
 
51
    svn checkout svn://svn.berlios.de/docutils/trunk/docutils
 
52
 
 
53
To check out everything (main tree, sandboxes, and web site), type ::
 
54
 
 
55
    svn checkout svn://svn.berlios.de/docutils/trunk docutils
 
56
 
 
57
This will create a working copy of the whole trunk in a new directory
 
58
called ``docutils``.
 
59
 
 
60
If you cannot use the ``svn`` port, you can also use the HTTP access
 
61
method by substituting "http://svn.berlios.de/svnroot/repos" for
 
62
"svn://svn.berlios.de".
 
63
 
 
64
Note that you should *not* check out ``svn://svn.berlios.de/docutils``
 
65
(without "trunk"), because then you'd end up fetching the whole
 
66
Docutils tree for every branch and tag over and over again, wasting
 
67
your and BerliOS's bandwidth.
 
68
 
 
69
To update your working copy later on, cd into the working copy and
 
70
type ::
 
71
 
 
72
    svn update
 
73
 
 
74
 
 
75
Developer Access
 
76
----------------
 
77
 
 
78
(Developers who had write-access for Docutils' CVS repository on
 
79
SourceForge.net should `register at BerliOS`__ and send a message with
 
80
their BerliOS user name to `Felix Wiemann <Felix.Wiemann@ososo.de>`_.)
 
81
 
 
82
__ https://developer.berlios.de/account/register.php
 
83
 
 
84
If you are a developer, you get read-write access via
 
85
``svn+ssh://<user>@svn.berlios.de/svnroot/repos/docutils/``, where
 
86
``<user>`` is your BerliOS user account name.  So to retrieve a
 
87
working copy, type ::
 
88
 
 
89
    svn checkout svn+ssh://<user>@svn.berlios.de/svnroot/repos/docutils/trunk \
 
90
        docutils
 
91
 
 
92
If you previously had an anonymous working copy and gained developer
 
93
access, you can switch the URL associated with your working copy by
 
94
typing ::
 
95
 
 
96
    svn switch --relocate svn://svn.berlios.de/docutils/trunk/docutils \
 
97
        svn+ssh://<user>@svn.berlios.de/svnroot/repos/docutils
 
98
 
 
99
(Again, ``<user>`` is your BerliOS user account name.)
 
100
 
 
101
If you cannot use the ``ssh`` port, you can also use the HTTPS access
 
102
method by substituting "https://svn.berlios.de" for
 
103
"svn+ssh://svn.berlios.de".
 
104
 
 
105
 
 
106
Setting Up Your Subversion Client For Development
 
107
`````````````````````````````````````````````````
 
108
 
 
109
Before commiting changes to the repository, please ensure that the
 
110
following lines are contained (and uncommented) in your
 
111
~/.subversion/config file, so that new files are added with the
 
112
correct properties set::
 
113
 
 
114
    [miscellany]
 
115
    # For your convenience:
 
116
    global-ignores = ... *.pyc ...
 
117
    # For correct properties:
 
118
    enable-auto-props = yes
 
119
 
 
120
    [auto-props]
 
121
    *.py = svn:eol-style=native;svn:keywords=Author Date Id Revision
 
122
    *.txt = svn:eol-style=native;svn:keywords=Author Date Id Revision
 
123
    *.html = svn:eol-style=native;svn:keywords=Author Date Id Revision
 
124
    *.xml = svn:eol-style=native;svn:keywords=Author Date Id Revision
 
125
    *.tex = svn:eol-style=native;svn:keywords=Author Date Id Revision
 
126
    *.css = svn:eol-style=native;svn:keywords=Author Date Id Revision
 
127
    *.patch = svn:eol-style=native
 
128
    *.sh = svn:eol-style=native;svn:executable;svn:keywords=Author Date Id Revision
 
129
    *.png = svn:mime-type=image/png
 
130
    *.jpg = svn:mime-type=image/jpeg
 
131
    *.gif = svn:mime-type=image/gif
 
132
 
 
133
 
 
134
Setting Up SSH Access
 
135
`````````````````````
 
136
 
 
137
With a public & private key pair, you can access the shell and
 
138
Subversion servers without having to enter your password.  There are
 
139
two places to add your SSH public key on BerliOS: your web account and
 
140
your shell account.
 
141
 
 
142
* Adding your SSH key to your BerliOS web account:
 
143
 
 
144
  1. Log in on the web at https://developer.berlios.de/.  Create your
 
145
     account first if necessary.  You should be taken to your "My
 
146
     Personal Page" (https://developer.berlios.de/my/).
 
147
 
 
148
  2. Choose "Account Options" from the menu below the top banner.
 
149
 
 
150
  3. At the bottom of the "Account Maintenance" page
 
151
     (https://developer.berlios.de/account/) you'll find a "Shell
 
152
     Account Information" section; click on "[Edit Keys]".
 
153
 
 
154
  4. Copy and paste your SSH public key into the edit box on this page
 
155
     (https://developer.berlios.de/account/editsshkeys.php).  Further
 
156
     instructions are available on this page.
 
157
 
 
158
* Adding your SSH key to your BerliOS shell account:
 
159
 
 
160
  1. Log in to the BerliOS shell server::
 
161
 
 
162
         ssh <user>@shell.berlios.de
 
163
 
 
164
     You'll be asked for your password, which you set when you created
 
165
     your account.
 
166
 
 
167
  2. Create a .ssh directory in your home directory, and remove
 
168
     permissions for group & other::
 
169
 
 
170
         mkdir .ssh
 
171
         chmod og-rwx .ssh
 
172
 
 
173
     Exit the SSH session.
 
174
 
 
175
  3. Copy your public key to the .ssh directory on BerliOS::
 
176
 
 
177
         scp .ssh/id_dsa.pub <user>@shell.berlios.de:.ssh/authorized_keys
 
178
 
 
179
  Now you should be able to start an SSH session without needing your
 
180
  password.
 
181
 
 
182
 
 
183
Repository Layout
 
184
=================
 
185
 
 
186
The following tree shows the repository layout::
 
187
 
 
188
    docutils/
 
189
    |-- branches/
 
190
    |   |-- branch1/
 
191
    |   |   |-- docutils/
 
192
    |   |   |-- sandbox/
 
193
    |   |   `-- web/
 
194
    |   `-- branch2/
 
195
    |       |-- docutils/
 
196
    |       |-- sandbox/
 
197
    |       `-- web/
 
198
    |-- tags/
 
199
    |   |-- tag1/
 
200
    |   |   |-- docutils/
 
201
    |   |   |-- sandbox/
 
202
    |   |   `-- web/
 
203
    |   `-- tag2/
 
204
    |       |-- docutils/
 
205
    |       |-- sandbox/
 
206
    |       `-- web/
 
207
    `-- trunk/
 
208
        |-- docutils/
 
209
        |-- sandbox/
 
210
        `-- web/
 
211
 
 
212
``docutils/branches/`` and ``docutils/tags/`` contain (shallow) copies
 
213
of the whole trunk.
 
214
 
 
215
The main source tree lives at ``docutils/trunk/docutils/``, next to
 
216
the sandboxes (``docutils/trunk/sandbox/``) and the web site files
 
217
(``docutils/trunk/web/``).