SVN::H...roperty(3pm)

πŸ“¦
version 1.36 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

SVN::Hooks::CheckProperty β€” bestie, this one checks the properties on files you're adding. That's it, that's the whole vibe πŸ’…

Oh and hey, this is the manual page for SVN::Hooks::CheckProperty, which lives in the 3pm section of your man pages (iykyk). Pull up a chair, we're doing this together 🫢


🌸 VERSION 🌸

version 1.36 β€” she's serving, she's stable, she's iconic πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

Okay so this SVN::Hooks plugin does exactly one job and does it flawlessly: it checks whether some files added to the repository have some properties set. No cap. That's the whole assignment πŸŽ€

She's active in the pre-commit hook, meaning she gets to look at your commit before it lands, and she will absolutely say "not today" if something's off. Main character energy fr fr.

She gets configured by this directive right here:

πŸ’– CHECK_PROPERTY(WHERE, PROPERTY[, VALUE])

This directive turns the checking on, and lowkey the whole point is that the commit gets aborted if it doesn't comply. So like, comply. Please. πŸ™ˆ

Now the arguments, one by one, no skipping:

  • The WHERE argument has to be a qr/Regexp/ that matches all the files that must comply with this rule.
  • The PROPERTY argument is the name of the property that must be set on the files matching WHERE.
  • The optional VALUE argument tells her what value PROPERTY needs, and it depends on the type of VALUE:
    • UNDEF or not present β€” the PROPERTY must be set. Simple. That's it. ✨
    • NUMBER β€” if it's non-zero, the PROPERTY must be set. If it's zero, the PROPERTY must NOT be set. (Yes bestie, zero means the opposite, keep up, this one's a little twist 🌈)
    • STRING β€” the PROPERTY must be set with a value equal to the string. Exact match only, she's picky and we love that for her.
    • qr/Regexp/ β€” the PROPERTY must be set with a value that matches the Regexp.

Example, because seeing it is believing:

CHECK_PROPERTY(qr/\.(?:do[ct]|od[bcfgimpst]|ot[ghpst]|pp[st]|xl[bst])$/i
       => 'svn:needs-lock');

Look at her go 🧚 That regex is matching all your office-document-file-ass extensions and demanding svn:needs-lock on every single one. Slay.


πŸ’œ AUTHOR πŸ’œ

Gustavo L. de M. Chaves <gnustavo@cpan.org> β€” we stan a legend 🫢


This software is copyright (c) 2022 by CPqD <www.cpqd.com.br>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. So like, go forth and remix, bestie πŸ’–


One thing real quick, no drama: this whole thing was written for perl v5.36.0 and the page is dated 2022-09-11. If you ever need to cite her, she's filed under SVN::H...roperty(3pm) in User Contributed Perl Documentation β€” that truncated lil name is just how the man page header renders it, don't @ her about it 😭

Anyway that's the page, you're gonna do great, go check those properties πŸŒŸπŸ’…

πŸ“¦ where this page comes from