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

后端 未结 5 1338
南方客
南方客 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:47

    Perforce 2016, osx. Diff for pending changelist:

    mac:src user$ cl=123456 && p4 diff -du $( p4 files @=$cl | sed s/#.*// ) > $cl.diff
    

    output: 123456.diff

    Applying patch:

    mac:src user$ patch -p0 < 123456.diff
    

提交回复
热议问题