Environment[indent]TS 672 SP2 + P1 on W2K3
CSURLExternalTask class[/indent]
Issue[indent]I have some code to essentially perform an iwupdate from the staging area of one branch to a given workarea on a sub-branch.
private void updateReleaseBranch() throws Exception {
boolean problems = false;
CSArea srcArea = getSrcArea();
CSWorkarea tgtArea = getTgtArea();
CSAreaRelativePath[] flist = task.getFiles();
CSUpdateResult result = tgtArea.update(flist, srcArea,
CSWorkarea.OVERWRITE_ALL);
CSFileCmpResult[] status = result.getResultOfUpdate();
int max = flist.length;
for (int i = 0; i < max; i++) {
if ((status.getPrimaryStatusCode() != CSFileCmpResult.SUCCESS)
&& (status.getSecondaryStatusCode() != CSFileCmpResult.SAME)) {
problems = true;
//...
}
}
if (problems) {
//...
}
}My problem is with the highlighted portion of the code - when attempting to repeat the update process for a given file (testing purposes right now). Through some debugging statements I've determined that:
.isSame())){ //... }but that didn't seem to do any better.