Deleting new files after a p4 revert

前端 未结 2 1613
自闭症患者
自闭症患者 2021-02-20 03:17

My workflow for testing my changes to our source code on a remote machine is the following:

1) On local machine: Shelve changes that I\'d like to test

2) On remo

2条回答
  •  暖寄归人
    2021-02-20 03:59

    Edit: just reread your question - this is a workaround, perhaps not a full solution...


    There is a setting in P4Win that allows you to overwrite files when unshelving:

    • Overwrite workspace files even if they are writeable

    I normally use that in combination with another option (again in the gui):

    • Revert checked our files before unshelving

    They solve my problem.

    Looking in the console output while running this from the gui, it looks like it is the -f parameter in the unshelve command.

    • p4 unshelve -s -f -c

提交回复
热议问题