App::S...revert(3pm)
π App::Sqitch::Command::revert
okay bestie, so this is the Perl side of the revert command from Sqitch β the App::Sqitch::Command::revert module π¦ it lives in the User Contributed Perl Documentation, and its whole vibe is reverting Sqitch changes from a database. yes, undoing. we love a lil time travel π°οΈβ¨
πΈ Synopsis
my $cmd = App::Sqitch::Command::revert->new(%params);
$cmd->execute;
that's the whole flex, fr fr π
β¨ Description
bestie listen π«Ά if you actually wanna know how to use the revert command, you are in the WRONG place β you want to be reading sqitch-revert, okay? go go go πββοΈ
but if you truly, deeply, no-cap need to know how the revert command works under the hood? then read on, bestie, because this is the behind-the-scenes lore ππ
π Interface
π§ Class Methods
options
my @opts = App::Sqitch::Command::revert->options;
hands you back a list of Getopt::Long option specs β aka the receipts for all the command-line options the revert command supports π
π¦ Attributes
log_onlyβ a boolean that says whether to log the deploy without actually running the scripts π yes, fake it but log it.lock_timeoutβ how many seconds to wait for an exclusive advisory lock on the target, but only for engines that support that feature (iykyk).modifiedβ boolean, revert to the change prior to the earliest change that has a revised deploy script π₯no_promptβ boolean saying yay or nay to prompting the user to really truly go through with the revert. no prompting = main character energy.prompt_acceptβ boolean for whether the default answer to the prompt (like, if the user just smashes Return) is to accept it or deny it πstrictβ boolean that decides whether or not a change to revert to is required. strict girlies stay strict.targetβ the deployment target URI π―to_changeβ the change to revert to π
β Instance Methods
execute
$revert->execute;
literally just executes the revert command. that's it. that's the method πβ¨
π See Also
sqitch-revertβ the docs for therevertcommand in the Sqitch command-line client, aka where you should have started bestie πsqitchβ the Sqitch command-line client itself π«Ά
π Author
David E. Wheeler <david@justatheory.com> π
π License
Copyright (c) 2012-2026 David E. Wheeler, 2012-2021 iovation Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
β οΈ okay so that ALL CAPS part is not me being dramatic for the bit β that's the actual legal text, and it hits different: no warranty, none, zero, nada π copy it, ship it, and don't come for the authors if it breaks.
and that's the whole page bestie! this lil gem is perl v5.40.1, dated 2026-07-26. go forth and revert responsibly πβ¨π
π¦ where this page comes from
- ubuntu stonking: sqitch 1.6.1-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms