So what's the Ruby way to go from
svn log --limit 40 --xml --verbose
to HTML?
Thanks,
···
--
Bil Kleb
http://fun3d.larc.nasa.gov
So what's the Ruby way to go from
svn log --limit 40 --xml --verbose
to HTML?
Thanks,
--
Bil Kleb
http://fun3d.larc.nasa.gov
Hi,
In <dtuulo$1rg$1@vilya.larc.nasa.gov>
"Ruby path for SVN log XML -> HTML" on Mon, 27 Feb 2006 22:28:34 +0900,
svnlog2html.rb (1.88 KB)
Bil Kleb <Bil.Kleb@NASA.gov> 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 Sutou 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,
--
Bil
Kouhei Sutou 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,
Index: svnlog2html.rb
===================================================================
--- 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,
--
Bil
http://fun3d.larc.nasa.gov
Hi,
In <du4qkv$gi2$1@vilya.larc.nasa.gov>
"Re: Ruby path for SVN log XML -> HTML" on Thu, 2 Mar 2006 03:58:37 +0900,
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,
Bil Kleb <Bil.Kleb@NASA.gov> wrote:
--
kou
Kouhei Sutou 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,
--
Bil
http://fun3d.larc.nasa.gov
Hi,
Are you hording any other svn gems?
All of my gems are committed in Subversion repository:
* https://svn.collab.net/repos/svn/trunk/tools/examples/svnlook.rb
* https://svn.collab.net/repos/svn/trunk/tools/examples/svnshell.rb
And you have already seen scripts:
* https://svn.collab.net/repos/svn/trunk/tools/examples/svnlog2html.rb
* 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,
--
kou