aboutsummaryrefslogtreecommitdiff
path: root/bzr.rb
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bzr.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/bzr.rb b/bzr.rb
index 864879b..6c77717 100644
--- a/bzr.rb
+++ b/bzr.rb
@@ -38,7 +38,13 @@ class VCS
end
def VCS.history
- `#{BZRCMD} log --forward`.split("-"*60)
+ log = `#{BZRCMD} log --forward`.split("-"*60)
+ log.shift
+ log.collect{|s|
+ a = s.scan(/\nrevno:.*\ncommitter.*\n.*\ntimestamp: (.*)\nmessage:\n (.*)/).flatten
+ h = {"timestamp" => Time.parse(a[0]),
+ "commit message" => a[1]}
+ }
end
def VCS.longhistory dir