version control - perforce connect history of two different files -


<<> When I did and everything was working I had removed the old (moved) files.

Can I add file history with each other?

Itemprop = "text">

Assume that your origin The file is // source / old / file.c # 5 and you can change this to // source / new / file.c , then modify the old file // Source / old / file.c # 6 . You need to integrate the old file with the old file using the -i flag, so Perforce will allow you to integrate between two files, which it does not know about any integration history :

  Integrate p4 -i //source/old/file.c#5 //source/new/file.c  

then files Resolve Normally during integrating, you want to accept a merged version of the file, but in this case you want to accept So interested, Perforce knows that you have already integrated, so that you can use "code" -ay to "accept yours", cancel the earlier version of the file:

  p4 resolution ------ //source/new/file.c  

then submit the revision.

(Ideally you are integrated first, then make any changes, and submit everything, but in this way the files are linked in the history of Perforce integration.) < / P>


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -