2

I want to get the CLs that are part of all intermediate builds between two build labels. That can be achieved on the command line using :

p4 changes "DEPOT_DIR_STRUCT/...@>BUILD_LBL_1,@<=BUILD_LBL_2"

Is there a P4J equivalent of this ?

anuvab1911
  • 311
  • 3
  • 10

1 Answers1

3

Never mind. Got it.

This can be done using the IServer.getChangelists(...) method.

First argument should be set to -1 for complete list of CLs.

The second argument for this method, i.e. the List<IFileSpec> should be created using the FileSpecBuilder.makeFileSpecList(...) method with the parameter as "DEPOT_DIR_STRUCT/...@>BUILD_LBL_1,@<=BUILD_LBL_2".

The other parameters should be set to null, null, true, true, false, true in that order.

I later encountered this problem with certain build labels. So if you encounter a similar situation, try setting the includeIntegrated parameter to false

anuvab1911
  • 311
  • 3
  • 10