P4 view mapping and its special characters

Source: Internet
Author: User


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 /..

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.