File.exist? svn2rss.rb

Hello,

We're migrating from CVS to Subversion and I am looking
for a Ruby post-commit hook to produce an RSS feed.

I found this November '05 post by Jamis,

  http://comox.textdrive.com/pipermail/budgetwise/2005-November/000117.html

but I can't seem to find any code. (I can't understand
the Python version in SVN's contrib/commit-hooks directory.)

Anyone?

Thanks,

···

--
Bil
http://fun3d.larc.nasa.gov

Hi,

In <dt1kml$ebe$1@vilya.larc.nasa.gov>
  "File.exist? svn2rss.rb" on Thu, 16 Feb 2006 19:38:34 +0900,

We're migrating from CVS to Subversion and I am looking
for a Ruby post-commit hook to produce an RSS feed.

tools/hook-scripts/commit-email.rb is what you looking
for. This script not just sending an e-mail but also
producing a RSS feed.

  commit-email.rb \
    "$REPOS" "$REV" your@mail.address \
    -r http://YOUR.HOST/REPOSITORY/TOP/URI \
    --rss-path /PATH/TO/RSS.rdf \
    --rss-uri http://YOUR.HOST/URI/OF/RSS.rdf \
    ... and other options ...

Thanks,

···

Bil Kleb <Bil.Kleb@NASA.gov> wrote:
--
kou

Kouhei Sutou wrote:

Hi,

Hello.

Bil Kleb <Bil.Kleb@NASA.gov> wrote:

We're migrating from CVS to Subversion and I am looking
for a Ruby post-commit hook to produce an RSS feed.

tools/hook-scripts/commit-email.rb is what you looking
for. This script not just sending an e-mail but also
producing a RSS feed.

I'll have another look at it, but I think it may be
too general purpose for me.

I am looking for a single-purpose, 20-liner (maybe by using
Weirich's Builder?) that I'll be able to understand within
a couple minutes 3 years from now... :slight_smile:

Regards,

···

--
Bil
http://fun3d.larc.nasa.gov

Bil Kleb wrote:

I am looking for a single-purpose, 20-liner (maybe by using
Weirich's Builder?) that I'll be able to understand within
a couple minutes 3 years from now... :slight_smile:

Here you go. This is exactly what you're looking for. Hope you are well. Say hi to your mom for me!

_why

post-commit (4.75 KB)

Hi,

In <dt2qce$msj$1@vilya.larc.nasa.gov>
  "Re: File.exist? svn2rss.rb" on Fri, 17 Feb 2006 06:23:39 +0900,

I am looking for a single-purpose, 20-liner (maybe by using
Weirich's Builder?) that I'll be able to understand within
a couple minutes 3 years from now... :slight_smile:

Here is another one. It uses RSS::Maker.
But... this has 190 lines...

Usage:
  % svn2rss.rb REPOS_PATH REVISION \
      --name YOUR_REPOSITORY_NAME_OPTIONAL \
      --repository-uri http://YOUR.REPOSITORY/URI \
      --rss-path /OUTPUTTED/RSS/PATH.rdf \
      --rss-uri http://OUTPUTTED/RSS/URI.rdf

Thanks,

svn2rss.rb (4.11 KB)

···

Bil Kleb <Bil.Kleb@NASA.gov> wrote:
--
kou