P4 view mapping and its special characters
Three Views in P4: client views, Branch views, and label views.
Note:
1) if the view has multiple mappings for the same file, the subsequent ing overwrites the previous mapping.
2)-ing starting with-is used to exclude the mapping of files. It is generally used to exclude some subdirectories or files in some directories.
3) in client views, the frontend of mapping can be +, indicating the effect of superposition, which is different from general coverage.
Space in the file or path:
// Depot/V1/... "// WS/version one /..."
"// Depot/document 2/..." // WS/Document2 /...
"-// Depot/document 2/file2" // WS/Document2/file2
Other special characters in the file or path:
Character |
ASCIIExpansion |
@ |
% 40 |
# |
% 23 |
* |
% 2a |
% |
% 25 |
Client view instance:
Client View |
Sample Mapping |
Full client workspace mapped to entire depot |
// Depot/... // WS /... |
Full client workspace mapped to part of depot |
// Depot/DIR/... // WS /... |
Some files in the depot aremapped to a different part of the client Workspace |
// Depot/... // WS /... // Depot/rel1/... // WS/release1 /... |
Some files in the depot areexcluded from the client Workspace |
// Depot/DIR/... // WS /... -// Depot/DIR/exclude/... // WS/DIR/exclude /... |
Files in the client workspace are mapped to different names than their depot names. |
// Depot/DIR/old. * // WS/renamed/New .* |
Portions of filenames in the depot are rearranged in the client Workspace |
// Depot/DIR/% 1.% 2 // WS/DIR/% 2.% 1 |
The files do not map the same way in each direction. The second line takes precedence, and the first line is ignored. |
// Depot/dir1/... // WS/build /... // Depot/dir2/... // WS/build /... |
An overlay mapping is used to map files from more than one depot Directory into the same place in the workspace. |
// Depot/dir1/... // WS/build /... + // Depot/dir2/... // WS/build /.. |