Skip to content

Commit 4cef282

Browse files
author
jared
committed
updated readme with markdown syntax and instructions for installing the patched xmloutput plugin for bazaar
1 parent 4dcb7a6 commit 4cef282

File tree

1 file changed

+37
-14
lines changed

1 file changed

+37
-14
lines changed

README

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= Ohloh SCM
1+
# Ohloh SCM
22

33
The Ohloh source control management library
44

@@ -16,7 +16,7 @@ GNU General Public License for more details.
1616
You should have received a copy of the GNU General Public License
1717
along with this program. If not, see <http://www.gnu.org/licenses/>.
1818

19-
== Overview
19+
## Overview
2020

2121
Ohloh SCM is an abstraction layer for source control management systems,
2222
allowing an application to interoperate with various SCMs using a
@@ -25,7 +25,7 @@ single interface.
2525
It was originally developed at Ohloh, and is used to generate
2626
the reports at www.ohloh.net.
2727

28-
== System Requirements
28+
## System Requirements
2929

3030
Ohloh SCM is developed on Mac OS X 10.5 and Ubuntu 6.06 LTS. Other Linux
3131
environments should also work, but your mileage may vary.
@@ -47,16 +47,43 @@ hg 1.1.2
4747
If you are using CVS instead of CVSNT, you can potentially try creating
4848
a shell alias or symlink mapping 'cvsnt' to 'cvs'.
4949

50-
== Running
50+
## Running
51+
52+
Ensure that cvsnt, svn, svnadmin, svnsync, git, and hg are all on your path. You'll also need to ensure that you have the xmloutput plugin installed for bazaar.
53+
54+
### Installing The XmlOutput Plugin
55+
$ cd ~
56+
$ mkdir .bazaar
57+
$ cd .bazaar
58+
$ mkdir plugins
59+
$ cd plugins
60+
61+
Now checkout the latest version of the xmloutput plugin (0.8.8 as of 11/21/2011).
62+
63+
$ bzr branch lp:~amujumdar/bzr-xmloutput/emit_authors
64+
65+
The default checkout directory is poorly named and bazaar will complain about this unless it is renamed.
66+
67+
$ mv emit_authors xmloutput
68+
69+
Now you just need to install the xmloutput plugin
70+
71+
$ cd xmloutput
72+
$ python setup.py build_ext -i
73+
74+
Verify that the plugin was installed correctly
75+
76+
$ bzr plugins
77+
78+
You should see some text like "xmloutput 0.8.8"
5179

52-
Ensure that cvsnt, svn, svnadmin, svnsync, git, and hg are all on your path.
5380
Then you can run the unit tests:
5481

55-
$ rake
82+
$ rake
5683

5784
You can load the library into your own Ruby application by requiring lib/scm.rb.
5885

59-
= Functionality
86+
# Functionality
6087

6188
For each tracked repository, Ohloh uses the SCM library to maintain a private
6289
local mirror. The SCM library hides the differences between source control
@@ -74,27 +101,23 @@ tasks on the local mirror:
74101

75102
1. Pull changes -- From a remote repository URL, pull any changes to the local
76103
mirror. This step may involve conversion from one system to another.
77-
78104
2. Push changes -- From the local mirror, push any changes to another Ohloh
79105
server. This is required to create backup copies and perform load balancing on
80106
the Ohloh cluster, and typically occurs over ssh.
81-
82107
3. Commit log -- Given the last known commit, report the list of new commits,
83108
if any, including their diffs.
84-
85109
4. Cat file or parent -- Given a commit, return either the contents of a
86110
single file, or that file's previous contents.
87-
88111
5. Export tree -- Given a commit, export the entire contents of the source tree
89112
to a specified temp directory.
90113

91114
The adapter must also implement validation routines used to filter user inputs
92115
and confirm the presence of the remote server.
93116

94-
= Contact Ohloh
117+
# Contact Ohloh
95118

96119
For more information visit the Ohloh website:
97-
http://labs.ohloh.net
120+
[Ohloh Labs](http://labs.ohloh.net)
98121

99122
You can reach Ohloh via email at:
100-
info@ohloh.net
123+
[info@ohloh.net](mailto:info@ohloh.net)

0 commit comments

Comments
 (0)