[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby path for SVN log XML -> HTML

Bil Kleb

2/27/2006 1:27:00 PM

So what's the Ruby way to go from

svn log --limit 40 --xml --verbose

to HTML?

Thanks,
--
Bil Kleb
http://fun3d.lar...
20 Answers

Kouhei Sutou

2/28/2006 12:23:00 PM

0


Content-Type: Multipart/Mixed;
boundary="--Next_Part(Tue_Feb_28_21_22_58_2006_128)--"

Bil Kleb

2/28/2006 10:34:00 PM

0

Kouhei Sutou wrote:
> Hi,

Hello.

> Here is my answer.
>
> A sample output is here:
> http://pub.cozmixng.org/~kou/archives/svnlog2html-s...

Awesome, thanks.

BTW: I did end up using your commit-email.rb. Thanks!

Regards,
--
Bil

Bil Kleb

3/1/2006 6:55:00 PM

0

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.lar...

Kouhei Sutou

3/2/2006 3:46:00 AM

0

Bil Kleb

3/2/2006 11:55:00 AM

0

Kouhei Sutou wrote:
> Hi,

Hello.

> I added the script to trunk Subversion repository as example:
> https://svn.collab.net/repos/svn/trunk/tools/examples/svnl...

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.lar...

Kouhei Sutou

3/2/2006 1:57:00 PM

0

abelard

5/13/2010 1:25:00 AM

0

On Thu, 13 May 2010 02:17:27 +0100, Maria <down@heel.org.uk> wrote:

>On 13/05/2010 02:13, abelard wrote:
>> On Thu, 13 May 2010 01:17:21 +0100, Maria<down@heel.org.uk> wrote:
>>
>>> How much is it?
>>
>> before or after the subsidies from england?
>
>After I presume - I have ?2.3bn for three years up to 2007/8 - these are
>the figures the government there is quoting now while citing an
>objection to having to accept cuts caused by the UK defecit!

i can only be amused

did you see this?
http://www.abelard.org/news/politics052010.php#subsidised_regi...

regards

--
web site at www.abelard.org - news comment service, logic, economics
energy, education, politics, etc over 1 million document calls in year past
--------------------------------------------------------------------------------
all that is necessary for [] walk quietly and carry
the triumph of evil is that [] a big stick.
good people do nothing [] trust actions not words
only when it's funny -- roger rabbit
--------------------------------------------------------------------------------

Paul

5/13/2010 1:31:00 AM

0

On 13/05/2010 02:24, abelard wrote:
> On Thu, 13 May 2010 02:17:27 +0100, Maria<down@heel.org.uk> wrote:
>
>> On 13/05/2010 02:13, abelard wrote:
>>> On Thu, 13 May 2010 01:17:21 +0100, Maria<down@heel.org.uk> wrote:
>>>
>>>> How much is it?
>>>
>>> before or after the subsidies from england?
>>
>> After I presume - I have ?2.3bn for three years up to 2007/8 - these are
>> the figures the government there is quoting now while citing an
>> objection to having to accept cuts caused by the UK defecit!
>
> i can only be amused
>
> did you see this?
> http://www.abelard.org/news/politics052010.php#subsidised_regi...
>
> regards
>
No, its not slightly read...

abelard

5/13/2010 1:38:00 AM

0

On Thu, 13 May 2010 02:30:43 +0100, Paul <paul23232@hotmail.com>
wrote:

>On 13/05/2010 02:24, abelard wrote:
>> On Thu, 13 May 2010 02:17:27 +0100, Maria<down@heel.org.uk> wrote:
>>
>>> On 13/05/2010 02:13, abelard wrote:
>>>> On Thu, 13 May 2010 01:17:21 +0100, Maria<down@heel.org.uk> wrote:
>>>>
>>>>> How much is it?
>>>>
>>>> before or after the subsidies from england?
>>>
>>> After I presume - I have ?2.3bn for three years up to 2007/8 - these are
>>> the figures the government there is quoting now while citing an
>>> objection to having to accept cuts caused by the UK defecit!
>>
>> i can only be amused
>>
>> did you see this?
>> http://www.abelard.org/news/politics052010.php#subsidised_regi...

>No, its not slightly read...

durhhhhh

--
web site at www.abelard.org - news comment service, logic, economics
energy, education, politics, etc over 1 million document calls in year past
--------------------------------------------------------------------------------
all that is necessary for [] walk quietly and carry
the triumph of evil is that [] a big stick.
good people do nothing [] trust actions not words
only when it's funny -- roger rabbit
--------------------------------------------------------------------------------

Paul

5/13/2010 1:39:00 AM

0

On 13/05/2010 02:37, abelard wrote:
> On Thu, 13 May 2010 02:30:43 +0100, Paul<paul23232@hotmail.com>
> wrote:
>
>> On 13/05/2010 02:24, abelard wrote:
>>> On Thu, 13 May 2010 02:17:27 +0100, Maria<down@heel.org.uk> wrote:
>>>
>>>> On 13/05/2010 02:13, abelard wrote:
>>>>> On Thu, 13 May 2010 01:17:21 +0100, Maria<down@heel.org.uk> wrote:
>>>>>
>>>>>> How much is it?
>>>>>
>>>>> before or after the subsidies from england?
>>>>
>>>> After I presume - I have ?2.3bn for three years up to 2007/8 - these are
>>>> the figures the government there is quoting now while citing an
>>>> objection to having to accept cuts caused by the UK defecit!
>>>
>>> i can only be amused
>>>
>>> did you see this?
>>> http://www.abelard.org/news/politics052010.php#subsidised_regi...
>
>> No, its not slightly read...
>
> durhhhhh
>
That's more sense than you usually make. Well done.