diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-21 11:37:42 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-21 11:37:42 +0100 |
commit | 5c5ac422f4c3790f0385248496c40d90a8d50e9b (patch) | |
tree | b9ebf162321493b3222cad907340306bdac8e73e /bzr.rb | |
parent | 66ded2d67eefb07e7c66213c20ff92eb62613d4e (diff) |
code restructuring
Diffstat (limited to 'bzr.rb')
-rw-r--r-- | bzr.rb | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |