THIS IS ONLY FOR USE WITH PERFORCE SERVERS BEFORE 15.1
In Perforce 2015.1, features to support Distributed Versioning have been added!
Please see the 'myb4' project for an experimental usability/convention script
to be used around the 2015.1 version of Perforce.
===
Basic Install:
--------------
1) Install this 'p4' into your HOME/bin directory (assuming that is in your PATH)
2) Edit this 'p4' to specify your platform if different from darwin90x86_64, see
ftp.perforce.com/perforce/r14.1 for possible platforms
3) Make 'p4' executable: chmod a+x $HOME/p4
4) Check to make sure this is the 'p4' that you're using: which p4
Alternative Install:
--------------------
Put this 'p4' in some directory FOO
alias p4="FOO/p4 "
Then you can run 'p4' and use this script or run '\p4' and use the raw p4
Interesting tidbits:
--------------------
- This will reuse your P4CONFIG/P4IGNORE if defined
- Sets the user to use for remote depot access
This means you can create a remote depot mapped to something and pull content
into your local Perforce storage structure. (You need to log into the remote
server for authentication to work)
Available commands:
-------------------
p4 init {directory} Create a Perforce storage structure in the current or specified
sub-directory
p4 check Check for a new version of this script
When in a Perforce storage structure:
p4 switch {branchName} Switch to specified branch or report current
Check for pending work and do something
p4 switch -b newBranchName Create new branch or report current
Check for pending work and do something
Switches to new branch
p4 switch -a List the defined branches
p4 branch FROM-TO Define how to merge between two branches
Only needed if branches use multi-line views
p4 mergefrom BRANCHNAME Run integ from named branch into current one
Uses branchspec BRANCH1-BRANCH2 if it exists
Otherwise //branches/FROM/... //branches/CUR/...
Then runs 'p4 resolve -am'
Note:
This is not a supported Perforce product or tool.
You're on your own when using this wrapper.
Note: There are no guardrails! Use identifiers for branch names for best
results.
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #10 | 11576 | Alan H Teague |
Closing off the myp4 project as pre-2015.1 Perforce Providing reference to the myb4 project as the future |
||
| #9 | 9724 | Alan H Teague | Clean up help | ||
| #8 | 9700 | Alan H Teague | Adding in p4 check command | ||
| #7 | 9030 | Alan H Teague | Update for changes to switch/branch | ||
| #6 | 8862 | Alan H Teague | Update some odds and ends | ||
| #5 | 8807 | Alan H Teague | Update README | ||
| #4 | 8802 | Alan H Teague | Update to add mergedown | ||
| #3 | 8778 | Alan H Teague | Make it work with both basic p4 and wrapped p4 | ||
| #2 | 8776 | Alan H Teague | Remove indirection of branch names | ||
| #1 | 8774 | Alan H Teague | Initial import of the myp4 project |