How can I grab my local changelist and send it to someone else in Perforce?

后端 未结 5 1340
南方客
南方客 2021-02-07 10:17

How can I grab my local changelist and send it to someone else in Perforce? More specifically, I would like to send unsubmitted changes from a local pending changelist to anothe

5条回答
  •  长情又很酷
    2021-02-07 10:37

    To shelve your pending changelist YOURCHANGE:

    p4 shelve [-c YOURCHANGE]
    

    The other user then does:

    p4 unshelve -s YOURCHANGE [-c THEIRCHANGE]
    

    In either case the "-c" arg can be omitted to use the default changelist instead. In the p4 shelve case it means a new changelist will be created and the files in your default changelist will be shelved into it; in the p4 unshelve case it means the shelved files from your changelist will be unshelved into the other user's default changelist.

提交回复
热议问题