Perforce 仓库中列出的名称后面的数字 #/# 是什么意思(在 P4V 中)?
在 P4V 中查看 perforce depot 时,将读取一个 xml 文件 some_file.xml #3/3
。这个#3/3
是什么意思?
我有 #0/1
文件,并且在同步时最终没有出现在我的工作区中。滚动它会显示“未在您的工作区同步”。这些有关系吗?
When looking at perforce depot in P4V, an xml file would be read some_file.xml #3/3 <text>
. What does this #3/3
mean?
I have files that are #0/1
, and do not end up in my workspace when I sync. Scrolling over it gives "not synced in your workspace". Are these related?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
#3/3
表示您拥有版本 3,可用的最大版本为 3#0/1
表示您拥有未提交到工作区的代码(我不认为 1 除了添加此版本将产生版本 1 之外还有任何意义)。查看文档,我认为更一般的含义是“你的/他们的”。在这种情况下,我会看到
#0/1
表示您本地没有版本,但有可用的版本。因此,如果您同步,您将在本地获取版本,因此具有#1/1
。#3/3
means you have version 3 and the maximum version available is 3#0/1
means you have code that is not committed to your workspace (I don't think the 1 has any significance other than adding this version will produce version 1).Looking at the documentation, I think more generally the meaning is "yours/theirs". In this case, I would see
#0/1
as meaning you don't have a version locally, but there is a version available. Therefore if you sync, you'll get the version locally and hence has#1/1
.斜杠左边的数字是工作区中该文件的修订版本,斜杠右边的数字是 Perforce 服务器上存在的该文件的修订版本数。如果您看到
some_file.xml #n/n
,则您拥有该文件的最新版本(数字匹配)。如果您在斜杠左侧看到零(例如,
some_file.xml # 0/n
),这意味着该文件存在于版本控制中,但它不存在于您的工作区中。如果左侧的数字是 0 到 n 之间的任何数字,则表明您对该文件有一些先前的修订版本。 P4V 将用黄色三角形来指示这一点。
The number to the left of the slash is the revision of that file that you have in your workspace, the number to the right of the slash is the number of revisions of that file that exist on the Perforce server. If you see
some_file.xml #n/n <text>
you have the latest revision of that file (the numbers match).If you see a zero on the left side of the slash (e.g.,
some_file.xml #0/n <text>
), that means the file exists in version control, but it does not exist in your workspace.If the number on the left is anything between 0 and n, you have some previous revision of the file. P4V will indicate this with a yellow triangle.