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 ?
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 ?
Copyright © 2021 Jogjafile Inc.
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 theFileSpecBuilder.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 tofalse