~ubuntu-branches/ubuntu/dapper/python-docutils/dapper

« back to all changes in this revision

Viewing changes to docs/dev/repository.txt

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-12-13 13:47:41 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051213134741-fhuh5tq3n346q1oj
Tags: 0.3.9-0.1ubuntu1
Synchronize with Debian unstable.

Show diffs side-by-side

added added

removed removed

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