P4 Command-line client is more formidable than GUI.
Filespec is the syntax which is to refer to workspace and depot contents.
A filespec uses "//" to indicate the root of the hierarchy, and "/" as a directory path and file name separator. //depot/projectA/doc/index.html
there can be multiple depots in a Perforce repository. The filespec root identifies the name of the depot. The filespec //depot/projectA/doc/index.html refers to a depot named "depot"
Either you can use absolute path, or relative path(depends on your current directory)
a filespec like projectA/d*/*.html, for example, can define a collection of files like:
projectA/dev/index.html
projectA/doc/diagnostics.html
projectA/doc/index.html
projectA/... refers to the files in the projectA directory
A filespec is a kind of view. A lot of views are stored in Perforce.
-----------------------------------------------------------------------------------------------------------------
A important example!!---show change history.
The view notion in P4 is very important! Especially the notion of interaction of views elaborated in this example
the P4 command that shows the history of changes to HTML files in the //depot path:
p4 changes //depot/.../*.html
Change 1386 on 2005/06/10 ... 'New page for promo...'
Change 1375 on 2005/06/05 ... 'Fix links on sign-up...'
Change 1369 on 2005/05/29 ... 'Add press releases...'
This command is affected by two views. The first is the filespec you see on the command line. The second is a view you don't see: the set of depot files you have permission to access. If, for instance, the access permission view is:
//depot/projectA/...
//depot/projectB/...
the net effect is that you will see the history of the files in the intersection of the two views. In other words, you will see the history of the set of files defined by this view:
//depot/projectA/.../*.html
//depot/projectB/.../*.html
-----------------------------------------------------------------------------------------------------------------
A important example!!---get a specific version(by version number) of some file---using #VersionNumber
index.html#10
A important example!!---get a specific version(by date) of some file---using @changeDate
index.html@2004/11/21
A important example!!---get a specific version(by date) of a bunch of files---using @changeDate
//depot/projectA/...@2004/11/21
A important example!!---the latest files in doc directory
doc/...#head
A important example!!---the files changed on 2004/01/04 in doc directory
doc/...@2004/01/04
the date 2004/11/21 is actually shorthand for 2004/11/21:00:00:00.
It refers to the latest revision of the file as of the commencement of November 21, 2004.
A important example!!---the files with the tag Good2Go in doc directory
doc/...@Good2Go
What’s a changelist. Changelist notion is also very important!!!
Perforce uses changelists to track changes submitted to the depot.
A important example!!---Actually, a little bit confused. The head branch? Or my understanding, it’s just retrieve files using changelist number.
doc/...@3405
Chagelist seems like tag in CVS, just a time slice of a CVS state.
Changelists represent points in time at which users submitted files. every changelist number is associated with a unique state of the collection.
This diagram is very important!! Changelist means the same of notion time.
分享到:
相关推荐
The Home Depot家得宝道德标准【精编版】.pdfThe Home Depot家得宝道德标准【精编版】.pdfThe Home Depot家得宝道德标准【精编版】.pdfThe Home Depot家得宝道德标准【精编版】.pdfThe Home Depot家得宝道德标准...
chromium的depot_tools,windows版本,如果你被墙挡住了,可能需要它。这是我用国外的云服务器下载回来的,更新日期2016年10月28日。 需要macos版本的请搜索我的另一个资源chromium depot_tools for macos。
depot_tools.zip, depot_tools.zip
1910_HPjmeterAgent_4.6.00.00_HP-UX_B.11.31_IA.depot 客户端,HPjmeter agent内存分析工具
:package: depot.js描述depot.js是带有简单API的命名空间包装器。 还有,但是没有一个符合我的需求。设置您可以通过npm安装depot.js: npm install depotjs -- save 或直接通过[removed][removed]加载它。 dist...
http://src.chromium.org/svn/trunk/tools/third_party/git_bin.zip,增加了git和git.bat文件,直接解压到depot_tools文件夹下。
2018年4月27日翻墻下载,最新版本的depot_tools工具——Linux/Mac版本
webrtc windows编译所需要的依赖库,国外无法现在,这个地方快速下载。depot_tools安装
Note: When downloading a .depot, .tar, or .sh file, some browsers don't recognize the .depot, .tar, or .sh format and treat the file as a text or application-specific file. If this happens, right-...
1910_HPjmeterConsole_4.6.00.00_HP-UX_B.11.31_IA.depot 控制台,HPjmeter Console内存分析工具
depot_tools工具,下载chrome与chromium源码用到的工具
官网上下载VMware-ESXi-6.7.0-8169922-depot完整压缩包还需要订阅,好不容易从阿拉伯网站上找到的这个. 上传有240M大小限制,分成两部分了,放...4e1ca8c0b74408eb322f86b61025ae2a VMware-ESXi-6.7.0-8169922-depot.zip
depot教程depot教程depot教程depot教程depot教程depot教程depot教程depot教程depot教程
HPUX 安装depot.gz依赖包方法
编译chromium的工具,编译所需工具.git clone'https://chromium.googlesource.com/chromium/tools/depot_tools.git'
http://src.chromium.org/svn/trunk/tools/third_party/python_26,增加了python和python.bat文件,直接解压到depot_tools文件夹下。
esxi 7.0 自定义封装包
Note: When downloading a .depot, .tar, or .sh file, some browsers don't recognize the .depot, .tar, or .sh format and treat the file as a text or application-specific file. If this happens, right-...