mergebranchperforcebranching-and-mergingperforce-integrate

"Fake out" a P4 merge


Is it possible to execute a "fake merge" between P4 branches? In short, we have a script that checks for un-merged changes between branches, and auto-emails team members every day to let them know if they've failed to merge changes from one branch to another. However, there are cases where it would be a bad idea to execute such merges (i.e. dependency lists that are branch-specific, for example), and we'd like to appease the nag-bot by having it detect "all changes in A since yesterday have been merged into B".

Is there a way to effectively (i.e. via the CLI):

In short, it would be a "merge but accept-full-theirs and discard yours even if no conflicts" operation.

Thank you.


Solution

  • That's p4 resolve -ay.

    p4 integ A/... B/...
    p4 resolve -ay
    p4 submit -d "B is ignoring changes from A."
    

    You will still need to submit the new revision (because merge records are themselves versioned information and need to be associated with a submit), but the revision will have no diffs from the previous revision and exists solely to represent that B has "ignored" that change from A.