What do the numbers #/# after a name listed in a Perforce depot mean (in P4V)?
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开发者_如何学Python end up in my workspace when I sync. Scrolling over it gives "not synced in your workspace". Are these related?
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.
#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
.
精彩评论