File: HACKING

package info (click to toggle)
moap 0.2.7-2.2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,356 kB
  • sloc: python: 5,590; sh: 818; makefile: 224; cs: 16
file content (19 lines) | stat: -rw-r--r-- 681 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Adding a Version Control System
-------------------------------
Easiest is to copy a file from one of the others that most resembles
the new one in structure.
moap/vcs/vcs.py is the base class that lists the functions yours needs to
implement.
Also add a matching test as moap/test/test_vcs_(yourvcs).py by copying
from the other VCS's test file.  Fix up the module/class names and
creation of repositories in the test file to verify that your implementation
works.

Python
------
MOAP is written for Python 2.3 or higher.

Style guide
-----------
The Python Style PEP is followed as much as possible.
Because of overexposure to Twisted, MOAP uses camelCase function/method names.