[Tip: perforce] Unchanged File For Submission Consideration

When we submit code, sometimes unchanged files will be checked in occasionally. In some cases, it is a mistake while in some cases it's correct behavior!

Mistake Check in Unchanged Files

In most cases, we don't need to check in unchanged things. Two ways to resolve this:

1. Always remember to "Revert Unchanged Files" before submitting using Perforce CL menu command;

2. Change your clientspec:

Needed Check in Of Unchanged Files

However, there are a couple of reasons that you might wantto submit unchanged files. These reasons come up only rarely, but it’s good tothink about them:

1. When doing a merge from another branch, and the exact same change has been done to a file on both branches, the merge will bereverted for this file. Then each time the same merge occurs, Perforce will think this file needs to be merged again. Submitting the file unchanged will let Perforce know that the file is now resolved.

2. Changing the metadata of a file doesn’t change the file. For example, if you want tochange the file type, you will need to be able to submit unchanged files.

posted @ 2010-03-20 08:08  能巴  阅读(662)  评论(0编辑  收藏  举报