SVN::H...roperty(3pm)
β¨ 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 π«Ά
π COPYRIGHT AND LICENSE π
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 perlv5.36.0and the page is dated2022-09-11. If you ever need to cite her, she's filed underSVN::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
- ubuntu noble: libsvn-hooks-perl 1.36-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libsvn-hooks-perl 1.36-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsvn-hooks-perl 1.36-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms