Search code examples
perforcebranching-and-mergingperforce-integrate

Is it possible to merge changes from one source to multiple destinations in Perforce?


We have a case where changes were made to a file in a source branch that need to get propagated to multiple destinations?

Here is an illustration:

enter image description here

I know I could do each one individually, but it seems like with the right wildcards in the filespec this might work.

We tried this viewspec:

//dev/main/file.txt //dev/r*/file.txt

But we got this error:

Integration errors: Incompatible wildcards '//dev/main/file.txt' <-> '//dev/r*/file.txt'

Is this possible?


Solution

  • Per the comment from @Matt:

    No way to one shot that with a wildcard I'm afraid. You'll have to script that one. p4 dirs will be handy for you to get the directories on the right hand side