Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit 3d88594

Browse files
committed
[NEW] Adding Bazaar support: add --bzr to bin/ohlog for testing
That finishes addition of bazaar support. Michael
1 parent a234d71 commit 3d88594

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bin/ohlog

+9
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Ohloh source control log parser
2929
--svn Parse a Subversion log
3030
--svn-xml Parse a Subversion XML log
3131
--hg Parse a Mercurial log
32+
--bzr Parse a Bazaar log
3233
3334
-h, --human Output result as a human-readable log (default)
3435
-x, --xml Output result as an XML log
@@ -46,6 +47,8 @@ Examples:
4647
4748
hg log -v | ohloh --hg
4849
50+
bzr log -v | ohlog --bzr
51+
4952
HELP
5053
end
5154

@@ -65,6 +68,10 @@ HELP
6568
parse HgParser
6669
end
6770

71+
def bzr
72+
parse BzrParser
73+
end
74+
6875
def parse(parser)
6976
self.writer ||= HumanWriter.new(STDOUT)
7077

@@ -100,6 +107,8 @@ HELP
100107
self.subcommand = :svn_xml
101108
when '--hg'
102109
self.subcommand = :hg
110+
when '--bzr'
111+
self.subcommand = :bzr
103112
when '-h', '--human'
104113
self.writer = HumanWriter.new(STDOUT)
105114
when '-x', '--xml'

0 commit comments

Comments
 (0)