What's the representation of point in time in Perforce

末鹿安然 提交于 2019-12-02 15:24:43

问题


A git commit hash represents the project at a specific time, what's the equivalent concept (a "thing" that represent a snapshot of the entire repo at a particular time) in Perforce?


回答1:


The submitted changelist number in Perforce serves the same purpose as a commit hash in git in terms of being a version specifier that applies across the entire repository.

Compared to the commit hash, changelist numbers also have the advantage of being comparable (submissions are required to be in order, with changelists being "renumbered" at submit time if necessary to preserve this property).

Date/timestamps can also be used as a revision specifier in most contexts where a changelist number or label can be used. A timestamp is essentially an alias for the changelist most recently submitted at that point in time.



来源:https://stackoverflow.com/questions/58706335/whats-the-representation-of-point-in-time-in-perforce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!