So what’s the Ruby way to go from
svn log --limit 40 --xml --verbose
to HTML?
Thanks,
So what’s the Ruby way to go from
svn log --limit 40 --xml --verbose
to HTML?
Thanks,
Hi,
In [email protected]
“Ruby path for SVN log XML → HTML” on Mon, 27 Feb 2006 22:28:34
+0900,
Bil K. [email protected] wrote:
So what’s the Ruby way to go from
svn log --limit 40 --xml --verbose
to HTML?
Here is my answer.
A sample output is here:
http://pub.cozmixng.org/~kou/archives/svnlog2html-sample.html
Kouhei S. wrote:
Hi,
Hello.
Here is my answer.
A sample output is here:
http://pub.cozmixng.org/~kou/archives/svnlog2html-sample.html
Awesome, thanks.
BTW: I did end up using your commit-email.rb. Thanks!
Regards,
Kouhei S. wrote:
Here is my answer.
Question: why isn’t this part of our commit-email.rb? Don’t
you use it as part of your post-commit hook?
BTW: I got a nil String error from $PWD. Here’s my patch,
— svnlog2html.rb (revision 18105)
+++ svnlog2html.rb (working copy)
@@ -5,7 +5,7 @@
include ERB::Util
-path = File.expand_path(ARGV.shift || $PWD)
+path = File.expand_path(ARGV.shift || ENV[‘PWD’])
html = <<-HEADER
<?xml version="1.0" encoding="utf-8"?>Regards,
Kouhei S. wrote:
Hi,
Hello.
I added the script to trunk Subversion repository as example:
https://svn.collab.net/repos/svn/trunk/tools/examples/svnlog2html.rb
Excellent, the world will thank you.
Are you hording any other svn gems?
My next project is to figure out how to check inbound
files as part of a pre-commit hook … care to sketch
that out?
BTW: I got a nil String error from $PWD. Here’s my patch,
Thanks. I used Dir.pwd instead of ENV[‘PWD’].
Ah, much better.
Thanks again,
Hi,
Are you hording any other svn gems?
All of my gems are committed in Subversion repository:
And you have already seen scripts:
https://svn.collab.net/repos/svn/trunk/tools/hook-scripts/commit-email.rb
My next project is to figure out how to check inbound
files as part of a pre-commit hook … care to sketch
that out?
I can’t show you any sample scripts without check condition
details. But svnlook.rb may help you.
Thanks,
Hi,
In [email protected]
“Re: Ruby path for SVN log XML → HTML” on Thu, 2 Mar 2006 03:58:37
+0900,
Bil K. [email protected] wrote:
Question: why isn’t this part of our commit-email.rb? Don’t
you use it as part of your post-commit hook?
No. I made the script only for you.
I added the script to trunk Subversion repository as
example:
https://svn.collab.net/repos/svn/trunk/tools/examples/svnlog2html.rb
BTW: I got a nil String error from $PWD. Here’s my patch,
Thanks. I used Dir.pwd instead of ENV[‘PWD’].
Regards,
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs