NAME
App::Pinto::Command::revert - revert stack to a prior revision
VERSION
version 0.0994_01
SYNOPSIS
pinto --root=REPOSITORY_ROOT revert [OPTIONS] [STACK] [REVISION]
DESCRIPTION
This command creates a new revision that reverts the stack to a prior revision.
COMMAND ARGUMENTS
The arguments are the name of the stack and/or the id of the revision to revert to. If the revision id is not specified, it defaults to the immediate parent of head revision of the stack. If the stack is not specified, then it defaults to whichever stack is currently marked as the default. The stack can also be specified using the --stack
option. Some examples:
pinto ... revert # Revert default stack to previous revision
pinto ... revert af01256e # Revert default stack to revision af01256e
pinto ... revert mystack af01256e # Revert mystack to revision af0125e
COMMAND OPTIONS
- --dry-run
-
Go through all the motions, but do not actually commit any changes to the repository. At the conclusion, a diff showing the changes that would have been made will be displayed. Use this option to see how upgrades would potentially impact the stack.
- --force
-
Force reversion even if the revision is not actually an ancestor. Normally, you can only revert to a revision that the stack has actually been at.
- --stack=NAME
- -s NAME
-
Peform reversion on the stack with the given NAME. Defaults to the name of whichever stack is currently marked as the default stack. Use the stacks command to see the stacks in the repository. This option is silently ignored if the stack is specified as a command argument instead.
AUTHOR
Jeffrey Ryan Thalhammer <jeff@stratopan.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Jeffrey Ryan Thalhammer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.