aboutsummaryrefslogtreecommitdiff
path: root/participate.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2008-11-17 11:42:55 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2008-11-17 11:42:55 +0100
commitcb09cd55424b21904d42c2bf2157907ad981e532 (patch)
tree3d36667fc3c52df960a529bdb5e108e3add36e4d /participate.rb
parent5ec5ec180cfdae140f459c167741dabcd94f755a (diff)
added possibility to configure the system and outsourced bazaar specific things
Diffstat (limited to 'participate.rb')
-rw-r--r--participate.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/participate.rb b/participate.rb
index 7022cc7..fc48e0a 100644
--- a/participate.rb
+++ b/participate.rb
@@ -6,7 +6,7 @@ Dir.chdir(olddir)
if $cgi.include?("revision")
REVISION=$cgi["revision"].to_i
- table = YAML::load(`export LC_ALL=de_DE.UTF-8; bzr cat -r #{REVISION} data.yaml`)
+ table = YAML::load(vcs_cat(REVISION, "data.yaml"))
else
table = YAML::load_file("data.yaml")
end
@@ -50,9 +50,9 @@ table.delete_comment($cgi["delete_comment"].to_i) if $cgi.include?("delete_comme
$htmlout += table.to_html
-MAXREV=`bzr revno`.to_i
+MAXREV=vcs_revno
REVISION=MAXREV unless defined?(REVISION)
-log = `export LC_ALL=de_DE.UTF-8; bzr log --forward`.split("-"*60)
+log = vcs_history
log.collect!{|s| s.scan(/\nrevno:.*\ncommitter.*\n.*\ntimestamp: (.*)\nmessage:\n (.*)/).flatten}
log.shift
log.collect!{|t,c| [DateTime.parse(t),c]}