Change 8186

sven_erik_knop (Sven Erik Knop)
Sven Erik Knop committed this change into //guest/sven_erik_knop/P4Pythonlib/scripts
Request Review
Download .zip
First working version of P4Sync

Requires Python2.7, P4Python 2012.2+ and Tkinter (+Tkk) to work.
Syntax (from --help):

usage: P4Sync.py [-h] [-p PORT] [-c CLIENT] [-u USER] [-H HOST] [-P PASSWORD]
                 [-d DIRECTORY] [-n] [--force] [--print] [--keep]
                 [filepaths [filepaths ...]]

P4Sync

positional arguments:
  filepaths             [file[revRange] ...]

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  P4PORT
  -c CLIENT, --client CLIENT
                        P4CLIENT
  -u USER, --user USER  P4USER
  -H HOST, --host HOST  P4HOST
  -P PASSWORD, --password PASSWORD
                        P4PASSWD
  -d DIRECTORY, --directory DIRECTORY
                        CWD
  -n, --preview         Preview only, no syncing
  --force               Force the update regardless of previous syncs
  --print               Update local workspace without updating the database
  --keep                Update database without updating the local workspace

Copyright (C) 2012 Sven Erik Knop, Perforce Software Ltd

Point it to a Perforce Server with the parameters or start in an environment that
has P4CONFIG or P4PORT/P4USER/P4CLIENT set, provide a file path if you do not
want to sync everything in that workspace. Wait for the GUI to start up and
press "Sync".
There is debug output on the console for now.
  • Files 1
  • Comments 0
1 edited 0 added 0 deleted
P4Sync.py#2
Loading...
Tip: Use n and p to cycle through the changes.