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

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

πŸ‘‘ NAME πŸ’…

SVN::Hooks::DenyChanges β€” bestie, this one is here to deny some changes in a repository. Like, no, you may not. πŸ’€


✨ VERSION ✨

version 1.36 πŸŽ€


🌸 SYNOPSIS 🌸

Okay so this SVN::Hooks plugin exists to disallow the addition, deletion, or modification of parts of the repository structure. Think of it as the bouncer at the club door but for your repo. 🫢

It's active in the pre-commit hook. (iykyk β€” that's the moment right before anything gets committed, so it gets to say no. πŸ‘‘)

It's configured by the following directives. Let's get into it. ⬇️

🚫 DENY_ADDITION(REGEXP, ...)

This directive denies the addition of new files matching the Regexps passed as arguments. New file? Not on her watch. πŸ™ˆ

DENY_ADDITION(qr/\.(doc|xls|ppt)$/); # ODF only, please

πŸ’” DENY_DELETION(REGEXP, ...)

This directive denies the deletion of files matching the Regexps passed as arguments. You cannot simply remove these. They stay. Periodt. 😀

DENY_DELETION(qr/contract/); # Can't delete contracts

πŸ”’ DENY_UPDATE(REGEXP, ...)

This directive denies the modification of files matching the Regexps passed as arguments. Look with your eyes, not with your commit. πŸ‘€

DENY_UPDATE(qr/^tags/); # Can't modify tags

🧚 DENY_EXCEPT_USERS(LIST)

This directive receives a list of user names which are to be exempt from the rules specified by the other directives. The VIP list, basically. ⭐

DENY_EXCEPT_USERS(qw/john mary/);

This rule exempts users john and mary from the other deny rules. They get the wristband. Everyone else, sorry bestie. πŸ’…


πŸ¦‹ AUTHOR πŸ¦‹

Gustavo L. de M. Chaves <gnustavo@cpan.org> β€” king behavior, honestly. πŸ‘‘


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. Slay, and also legally binding. πŸŽ€


and that's the whole page, bestie!! this lil beauty is perl v5.36.0, dated 2022-09-11, and it lives under SVN::H...Changes(3pm). mwah, go deny some changes responsibly πŸ’œβœ¨

πŸ“¦ where this page comes from