From ff1f68899a20177fe2bd7e05efec683e4555c0f2 Mon Sep 17 00:00:00 2001 From: Nathan Stratton Treadway Date: Mon, 20 Aug 2012 17:00:36 -0400 Subject: [PATCH] Commit.exports(): use #join (to work in Ruby 1.9) When rcs-fast-export.rb was run in "directory" mode under Ruby 1.9, then log messages that were output came out in "array" format rather than plain text, as in ["log line 1\n","log line 2\n"] Switching from ".to_s" to ".join" allows this to work in both Ruby 1.8 and 1.9. (This is fix is similar to commit 3dbc2f0ee9e36444c6927ad1ec7dc163f08d6f2f from Jan 12 2011, which makes a similar change to the log messages output when the script processes a single RCS file.) --- rcs-fast-export.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcs-fast-export.rb b/rcs-fast-export.rb index 5651fd7..c8e7ff8 100755 --- a/rcs-fast-export.rb +++ b/rcs-fast-export.rb @@ -607,7 +607,7 @@ module RCS def export(opts={}) xbranch = self.branch || 'master' xauthor = opts[:authors][self.author] || "#{self.author} " - xlog = self.log.to_s + xlog = self.log.join numdate = self.date.tv_sec xdate = "#{numdate} +0000" key = numdate.to_s -- 2.32.0.93.g670b81a890