SVN::Web::List(3pm)

πŸ“¦
version 0.63 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– SVN::Web::List πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation section of the manual, and it's all about SVN::Web::List β€” which is, and I cannot stress this enough, a genuinely iconic little module. ✨

✨ NAME ✨

SVN::Web::List β€” it's the SVN::Web action that lists all your available repositories. That's the whole job. She's a specialist. πŸ’…


🌸 SYNOPSIS 🌸

So you drop this into config.yaml, right here:

actions:
  ...
  list:
    class: SVN::Web::List
    opts:
      redirect_to_browse_when_one_repo: 0 # or 1
      public_repos_uri: hide_local
...

That's it. That's the whole vibe. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

She displays a list of all the available Subversion repositories you've got for browsing. And if there's only one repo available, she may just redirect you straight to it, because, like, why make you click around for no reason? Main character energy: straight to the point. πŸ‘‘


πŸŽ€ CONFIGURATION πŸŽ€

These options go in config.yaml. Lowkey the most important part, so pay attention bestie:

  • redirect_to_browse_when_one_repo β€” a boolean, meaning yes/no. It says whether, when only one repository is available, SVN::Web::List should immediately issue a redirect straight to browsing that repository β€” which saves the user a whole mouse click. Precious. πŸ–±οΈβœ¨ Defaults to 0.
  • public_repos_uri β€” okay so this one has options:
    • 'hide_local' β€” hides the URL for any file:// repositories. Privacy era. πŸ™ˆ
    • 'hide_all' β€” hides all the repositories.
    • or a hash. The hash should be keyed by the repository name, and the values should be either a URL display, or a false value to hide the URL.

Default is to show all repository URLs, no secrets kept. 🌈


πŸ’œ TEMPLATE VARIABLES πŸ’œ

  • reposcount β€” the number of repositories that were configured. A count. She counts. πŸ”’
  • repos β€” a hash. Keys are repository names, paths are repository URLs. πŸ—‚οΈ

πŸ’€ EXCEPTIONS πŸ’€

None. Literally none. Not one. Very chill of her honestly. 😌


Copyright 2003-2004 by Chia-liang Kao <clkao@clkao.org>.

Copyright 2005-2007 by Nik Clayton <nik@FreeBSD.org>.

Copyright 2012 by Dean Hamstead <dean@fragfest.com.au>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://www.perl.com/perl/misc/Artistic.html>


fr fr, credit where credit is due, these three legends built the thing πŸ’–

okay that's the whole page bestie, no cap, every detail intact, slay πŸ’…βœ¨ this was SVN::Web::List(3pm) from perl v5.40.1, dated 2025-04-09 β€” ily, go browse some repos πŸ¦‹πŸŽ€πŸ“

πŸ“¦ where this page comes from