Tools for Perforce integration
Builds a list of the current client's opened files and displays them in a scratch buffer, grouped by change.
Creates two mappings:
<leader>po: Gets information about opened files from P4 and displays it in a named scratch window<leader>pp: Switches to the previously created scratch window, if it exists, otherwise gets the info from P4
In order to cut down on P4 traffic, the plugin only executes three commands:
p4 openedto get the list of opened files (depot names)p4 clientto get the client view; depot names are translated to local names by the script, rather than viap4 wherep4 changes -L -s pending -c <client_name>to get the first line of description for each pending change
- Currently supports UNIX file system paths only.
- Expects
P4USER,P4PORT,P4CLIENTto be set (env orP4CONFIG) - Expects
p4to be in thePATH - Prompts for the P4 password if expired and calls
p4 login
- Better error handling
- Add documentation