Skip to content

Commit

Permalink
send a hash instead of a string so we can colorize in the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
bleything committed Sep 16, 2005
1 parent 79be7ce commit 536eb94
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions post-commit
Expand Up @@ -38,7 +38,10 @@ info_array = `svnlook info --revision #{rev} #{path}`.strip.split(/\n/, 4)
# guess what the repository name is
repos = path.split(/\//).last

# colorize it. we can make this look pretty later
message = "\0032#{info_array[0]}\003 * \0039#{repos}:/\003 \002[#{rev}]\002 - #{info_array[3].gsub(/\n/, ' ')}"
msg = { :author => info_array[0],
:revision => rev,
:repository => repos,
:log => info_array[3].gsub(/\n/, ' ')
}

sw.send_msg message
sw.send_msg msg

0 comments on commit 536eb94

Please sign in to comment.