Perforce Sync on on list of Changelist numbers

Currently the way I see the Perforce Sync action working when specifying a changlist number is, that it will sync all the files UP TO that changelist number, not just on that ONE changelist. I.E- Use Finalbuilder’s P4 Sync command using the ChangeList option on the Revision tab and specify changelist “4”. When it actually syncs to the depot, not only do you get changelist “4”, but also changelists 1,2,&3 (assuming you haven’t synced on those previously).I would like Finalbuilder to allow me to specify a list of P4 changelists (like 10, 23, 101) and then only sync on those specified changelists like this:p4 sync @10,@10p4 sync @23,@23p4 sync @101,@101That way, I only get the files associated with 10, 23 & 101 and not everything in-between. We have accomplished this by creating and then running a batch script which contains the above p4 command lines within FinalBuilder, however it would be nice feature to just have a P4 Sync Action that does this for you instead of just having one that will sync all the way up to the specified changelist. Can you look into this??

Hi Jerrad,

I’m pretty sure you could enter more than one change number in the change number field in the sync action, but don’t put the first @ symbol as that will be automatically added by FB, eg. if you put “1,@2” then it will call p4 with @1,@2

let me know if this works or not.

.t8

You are right, that does work for one chagelist number, but not for a list of several that are not sequential.

so, what’s the exact command line for p4 that you would use for non-sequential change numbers?

you have to use multiple p4 sync commands executed one after the other such as:
p4 sync @10,@10
P4 sync @23,@23
p4 sync @101,@101

Hi Jerrad,

Ah, ic!

Well, in that case you’ll have to use multiple Perforce Sync actions as the action is not designed to be able to call p4 more than once per execution.

Hi Jerrad,

Another option, if you have a very long list of changelist numbers, may be to use a List Iterator. Put the list of Changelist sets into the list text, ie:

10
23
101,@103

Then set a variable from the List Iterator and use it for the changelist number in the P4 Sync action, ie %ChangeList%

Hth.

Regards,

Angus