列出沙箱中所有待处理的变更列表

The*_*ere 1 version-control perforce sandbox

我有一个perforce沙箱,并且我在沙箱中创建了一个新的变更集,该变更集仍然处于待处理状态,即我还没有提交它。如何获取变更集编号。p4 changelists为我提供了所有沙箱的变更列表,我只需要我的沙箱,而且只有待处理的沙箱。

Sam*_*ord 5

p4 changes -c CLIENT -s pending
Run Code Online (Sandbox Code Playgroud)

其中 CLIENT 是您的客户端规范(“沙箱”)的名称。

来自“p4帮助更改”:

changes -- Display list of pending and submitted changelists
changelists -- synonym for 'changes'

p4 changes [-i -t -l -L -f] [-c client] [ -e changelist# ]
        [-m max] [-s status] [-u user] [file[revRange] ...]

    ...

    The -c client flag displays only submitted by the specified client.

    ...

    The -s status flag limits the output to changelists with the specified
    status. Specify '-s pending', '-s shelved', or '-s submitted'.
Run Code Online (Sandbox Code Playgroud)