A Python 3 script the essentially does the same thing as "p4 reconcile".
LICENSE.txt | first commit | 2017-02-16 22:55:09 |
---|---|---|
README.md | Document the -n flag. | 2017-02-17 00:09:43 |
same_as_p4_reconcile.py | Add type hints. | 2020-12-30 22:43:33 |
This is a Python 3 script that's nearly the same as simply running "p4 reconcile".
I'd already started writing it before I realized what a duplication of effort it was. So, of course, I decided to memorialize it here.
To preview how a reconcile would look, issue a command like so:
same_as_p4_reconcile.py -c 48 -n source_dir/ p4_dir/
Of course, issue the command with -h or --help to learn more.
same_as_p4_reconcile.py --help
usage: same_as_p4_reconcile.py [-h] [-c CHANGELIST] [-n] source_dir p4_dir
Similar to "p4 reconcile"
positional arguments:
source_dir The newer directory outside perforce
p4_dir The perforce directory to be modified
optional arguments:
-h, --help show this help message and exit
-c CHANGELIST, --changelist CHANGELIST
Changelist to use
-n, --preview Preview only, don't change any files
Wait, what?
Yes.
This software uses the MIT license.