Perforce p4“描述”命令未列出受影响的文件

发布于 2024-12-06 04:56:51 字数 100 浏览 0 评论 0原文

当发出“p4describechangelist#”时,有时会列出受影响的文件;有时它们不是,只是显示:

受影响的文件......

有人知道这是为什么吗?

When "p4 describe changelist#" is issued, sometimes the affected files are listed; sometimes they are not and just show:

Affected files ...

Anyone knows why that is?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

谜兔 2024-12-13 04:56:51

最可能的解释:您没有受影响文件的“列出”权限。 p4 Protect 的文档解释了各自的权利。

例如,如果您有 list,但没有 read 权限,p4describe 将输出:

Affected files:
   //depot/path/to/file
Difference:
   ...

同样,如果 list > right 也丢失了,p4describe 将具有您看到的输出。请咨询您的 Perforce 管理员,了解相应仓库路径的权限(让他针对上述清单发出 p4描述 :))

Most likely explanation: You do not have 'list' rights for the affected files. The docu for p4 protect explains the respective rights.

For example, if you have list, but no read rights, p4 describe will output:

Affected files:
   //depot/path/to/file
Difference:
   ...

Likewise, if the list right is also missing, p4 describe will have the output that you saw. Check with your Perforce admin what the rights are for the respective depot path (let him issue p4 describe for the mentioned checklist :))

弥繁 2024-12-13 04:56:51

如果更改列表仅包含搁置的文件,您将看到该行为。例如:

d:\projects>p4 describe -s 925745
Change 925745 by [email protected] on 2011/08/11 07:48:04 *pending*

      New SDK

Affected files ...

但由于我有被搁置的文件,我可以使用 -S 选项和描述来查看被搁置的文件。

d:\projects>p4 describe -S -s 925745
Change 925745 by [email protected] on 2011/08/11 07:48:04 *pending*

        New SDK

Shelved files ...

... //path/to/fileA#8 edit
... //path/to/fileB#11 edit
... //path/to/fileC#1 edit
... //path/to/fileD#3 edit

此外,如果更改列表中确实没有文件,则不会显示任何文件,这可能是挂起的更改列表的情况。请注意,上面的描述输出的第一行显示 pending,这意味着此更改列表尚未提交。挂起的更改列表可以为空、包含文件、包含文件和搁置的文件或仅包含搁置的文件。根据该状态,“p4 describe”的输出可能不会显示任何文件。

If the changelist only contains shelved files, you will see that behavior. For example:

d:\projects>p4 describe -s 925745
Change 925745 by [email protected] on 2011/08/11 07:48:04 *pending*

      New SDK

Affected files ...

but since I have files that are shelved, I can use the -S option with describe to see the files that are shelved.

d:\projects>p4 describe -S -s 925745
Change 925745 by [email protected] on 2011/08/11 07:48:04 *pending*

        New SDK

Shelved files ...

... //path/to/fileA#8 edit
... //path/to/fileB#11 edit
... //path/to/fileC#1 edit
... //path/to/fileD#3 edit

Also, it will display no files if there are indeed no files in the changelist, which might be the case for pending changelists. Notice that the first line of the describe output above says pending, which means that this changelist hasn't been submitted yet. Pending changelists can be empty, contain files, contain files and shelved file, or only shelved files. Depending on that state, the output of 'p4 describe' might not show any files.

明明#如月 2024-12-13 04:56:51

另一种可能性:文件或文件修订已被删除。

删除可能会导致提交的变更列表不引用任何文件。

Another possibility: files or file revisions have been obliterated.

Obliterating can leave submitted changelists that refer to no files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文