Same file in multiple changelists in perforce

前端 未结 6 1739
野趣味
野趣味 2021-01-04 03:17

Is there any way to have the same file be a part of multiples changelists in perforce? With that I mean that from the set of changed lines in the file one subset will belong

6条回答
  •  忘掉有多难
    2021-01-04 03:33

    If you are using p4 server 2009.2, there is a workaround to do it. You can shelve a particular file and the diff is stored on the server. After shelving you may want to revert the file to its original version and then work it on in another change-list. I know this is not a way you wanted it but it is quite easy to create another workspace/client and then sync the code. The later exercise becomes more tedious when you have volumes of code that goes into another application.

    For more info read:

    • http://blog.perforce.com/blog/?p=1872
    • http://www.perforce.com/perforce/doc.current/manuals/cmdref/shelve.html

提交回复
热议问题