2015-12-02 14:23:39 +00:00
|
|
|
#+TITLE: Perforce layer
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
[[file:img/p4.png]]
|
|
|
|
|
2016-03-31 02:59:55 +00:00
|
|
|
* Table of Contents :TOC_4_gh:noexport:
|
|
|
|
- [[#description][Description]]
|
|
|
|
- [[#install][Install]]
|
|
|
|
- [[#key-bindings][Key bindings]]
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
* Description
|
|
|
|
|
2017-04-25 15:42:58 +00:00
|
|
|
This layer adds support for [[https://www.perforce.com/][Perforce]] (p4).
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
* Install
|
2016-01-06 05:21:55 +00:00
|
|
|
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
|
|
|
|
add =perforce= to the existing =dotspacemacs-configuration-layers= list in this
|
|
|
|
file.
|
2015-06-10 16:44:30 +00:00
|
|
|
|
2017-04-25 15:42:58 +00:00
|
|
|
You'll have to install the =p4== command line tool from the [[https://www.perforce.com/downloads/helix][download page]].
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
Don't forget to setup the environment variables:
|
|
|
|
- =P4_PORT=
|
|
|
|
- =P4_CLIENT=
|
|
|
|
- =P4_USER=
|
|
|
|
- =P4_PASSWD=
|
|
|
|
|
|
|
|
* Key bindings
|
|
|
|
|
|
|
|
| Key Binding | Description |
|
|
|
|
|-------------+--------------------------------------------------------------|
|
|
|
|
| ~SPC p 4 a~ | add a file in depot |
|
|
|
|
| ~SPC p 4 d~ | delete a file in depot |
|
|
|
|
| ~SPC p 4 D~ | p4-describe |
|
|
|
|
| ~SPC p 4 e~ | checkout a file |
|
|
|
|
| ~SPC p 4 r~ | revert a file |
|
|
|
|
| ~SPC p 4 R~ | refresh content of an file. 'sync -f' |
|
|
|
|
| ~SPC p 4 S~ | submit CL |
|
|
|
|
| ~SPC p 4 b~ | create, modify, or delete a branch view specification |
|
|
|
|
| ~SPC p 4 B~ | display list of branch specifications |
|
|
|
|
| ~SPC p 4 c~ | create or edit a client workspace specification and its view |
|
|
|
|
| ~SPC p 4 C~ | display list of pending and submitted CL |
|
|
|
|
| ~SPC p 4 E~ | change the filetype of an open file or move it to another CL |
|
|
|
|
| ~SPC p 4 @~ | p4-depot-find-file |
|
|
|
|
| ~SPC p 4 f~ | list revision history of files |
|
|
|
|
| ~SPC p 4 F~ | list files in the depot |
|
|
|
|
| ~SPC p 4 G~ | display current perforce client name |
|
|
|
|
| ~SPC p 4 g~ | synchronize client with depot |
|
|
|
|
| ~SPC p 4 h~ | p4-help |
|
|
|
|
| ~SPC p 4 H~ | list revisions most recently synced to the current workspace |
|
|
|
|
| ~SPC p 4 i~ | display client/server information |
|
|
|
|
| ~SPC p 4 I~ | integrate one set of files into another |
|
|
|
|
| ~SPC p 4 j~ | create or edit a job (defect) specification |
|
|
|
|
| ~SPC p 4 J~ | display list of all jobs |
|
|
|
|
| ~SPC p 4 l~ | create or edit a label specification |
|
|
|
|
| ~SPC p 4 L~ | display list of defined labels |
|
|
|
|
| ~SPC p 4 :~ | apply label to the contents of the client workspace |
|
|
|
|
| ~SPC p 4 m~ | move files from one location to another |
|
|
|
|
| ~SPC p 4 o~ | list open files and display file status |
|
|
|
|
| ~SPC p 4 p~ | write a depot file to a buffer |
|
|
|
|
| ~SPC p 4 P~ | p4-set-p4-port |
|
|
|
|
| ~SPC p 4 q~ | quit window |
|
|
|
|
| ~SPC p 4 y~ | resolve integrations and updates to workspace files |
|
|
|
|
| ~SPC p 4 s~ | identify differences between workspace and depot |
|
|
|
|
| ~SPC p 4 t~ | toggle perfore server check when opening files. |
|
|
|
|
| ~SPC p 4 u~ | create or edit user specification |
|
|
|
|
| ~SPC p 4 U~ | list perforce users |
|
|
|
|
| ~SPC p 4 v~ | emacs perforce integration version |
|
|
|
|
| ~SPC p 4 V~ | p4 blame |
|
|
|
|
| ~SPC p 4 w~ | show how file names are mapped by client view |
|
|
|
|
| ~SPC p 4 x~ | delete a file from the depot |
|
|
|
|
| ~SPC p 4 X~ | mark jobs done by specific CL |
|
|
|
|
| ~SPC p 4 z~ | p4-reconcile |
|
|
|
|
| ~SPC p 4 =~ | p4 diff |
|
|
|
|
| ~SPC p 4 +~ | p4 diff on all opened files |
|
|
|
|
| ~SPC p 4 -~ | p4 ediff |
|