Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I feel your pain. I think the SVN API, and its bindings are quite a bit much less than stellar or intuitive.

    Just for the sake of saying so, It is possible to browse using file, svn, AND http in http://search.cpan.org/~claco/Catalyst-Model-SVN-0.05/ [cpan.org]

    That's what powers http://handelframework.com/source/ [handelframework.com]

    It wasn't fun, and it wasn't pretty, but it does work. My biggest beef is the fetching content/logs on a tab/branch url. I can't just ask for it by url, since it's a copy; you have to stroll through the logs til
    • by nik (3476) <nikc@cpan.org> on 2006.09.15 8:54 (#50113) Journal
      Just for the sake of saying so, It is possible to browse using file, svn, AND http in http://search.cpan.org/~claco/Catalyst-Model-SVN-0.05/ [cpan.org]
      Do you see much use of the http:/// [http] access? I've done some benchmarking comparing SVN::Repos (file:/// only) with SVN::Ra (file:/// and svn://). Carrying out 11 runs each of SVN::Web's test suite, SVN::Ra takes about 15% longer to run the tests than SVN::Repos.
      x SVN::Repos
      + SVN::Ra
      : = Mean
      M = Median
      +----------------------------------------------------------------------- --+
      |                                     x                 +                  |
      |                                     x                 +                  |
      |                                     x                 +                  |
      |                  x                  +                 +                  |
      |                  x                  +                 +                 +|
      |x                 x                  +                 +                 +|
      |                |___________:________M___|                                |
      |                                        |____________:_M__________|       |
      +--------------------------------------------------------------------------+
          N           Min           Max        Median          Mean        Stddev
      x  11             7             9             9     8.5454545    0.68755165
      +  11             9            11            10     9.9090909    0.70064905
      Difference at 99.5% confidence
              1.36364 +/- 1.05132
              15.9574% +/- 12.3026%
      Using SVN::Client is even slower -- no hard figures yet, but I'm working on that. I'm not sure that's an overhead that's worth paying. Have you got any evidence to support one or the other, anecdotal or otherwise?
      • I've got nothing. I chose SVN::Client because it was the only one that had any decent pod. And I use Ra to get_latest_version from the repo since I couldn't find another way to do it using Client. And Ra totally baffles me to this day.

        The SVN Perl bindings are not so readable. Trolling through C source docs/doxygen (when it works) isn't my idea of usable pod w/ examples. :-)

        I was under the impression that Ra, or at least it's perl bindings couldn't do all forms of connections (svn, file, http). I'm sure htt
        • The SVN Perl bindings are not so readable. Trolling through C source docs/doxygen (when it works) isn't my idea of usable pod w/ examples. :-)

          That has recently (like, last week) improved, as a big commit was made to Subversion to expand on the Perl documentation and provide more examples.

          But yes, I've often had to fallback to writing a short hack to exercise a particular API function and use Data::Dumper on the result to divine what's being returned.

          I was under the impression that Ra, or at least it's