Perforce Cookbook

From Littledamien Wiki
Jump to navigation Jump to search

View files in a changelist using changelist number[edit]

Changelist > Describe Changelist... > enter changelist number in dialog

Syncing a repo from the command line[edit]

2014.1 Command Reference: Sync

At the command prompt make sure you're at the root of the client repo.

p4 -H beckster -p 1666 -u ali -c web-damien sync
  • -H Host
  • -p Port (1666 is the default)
  • -u User
  • -c client

Perforce configuration files[edit]

  • Set the P4CONFIG environment variable to the name of the local configuration file, e.g. ".p4config".
  • Create the ".p4config" file in the local repo.
  • Each setting in the file must be specified on its own line, using the format setting=value.

Example:

P4PORT=tcp:beckster:1666
P4USER=ali
P4CLIENT=web-damien