in vault-connection/src/jetbrains/buildServer/buildTriggers/vcs/vault/impl/VaultConnectionImpl.java [294:326]
public List<RawChangeInfo> getFolderHistory(@NotNull String path, @NotNull String fromVersion, @NotNull String toVersion) {
final Long objectFromVersion = getFolderDisplayVersion(path, fromVersion);
final Long objectToVersion = getFolderDisplayVersion(path, toVersion);
if (objectFromVersion == null || objectToVersion == null || objectFromVersion >= objectToVersion) return Collections.emptyList();
final VaultHistoryItem[] vaultHistoryItems =
ServerOperations.ProcessCommandHistory(ensureRepoPath(path), true, DateSortOption.desc,
null, null/*"label,obliterate,pin,propertychange"*/,
null, null, null, null,
objectFromVersion + 1, objectToVersion, 1000);
return CollectionsUtil.convertAndFilterNulls(Arrays.asList(vaultHistoryItems), new Converter<RawChangeInfo, VaultHistoryItem>() {
public RawChangeInfo createFrom(@NotNull VaultHistoryItem source) {
final RawChangeInfo.RawChangeInfoType type = RawChangeInfo.RawChangeInfoType.getType(VaultHistoryType.GetHistoryTypeName(source.get_HistItemType()));
if (type == RawChangeInfo.RawChangeInfoType.NOT_CHANGED) return null;
final String name = source.get_Name();
final String miscInfo1 = source.get_MiscInfo1();
final String miscInfo2 = source.get_MiscInfo2();
final Long txId = source.get_TxID();
final VaultDateTime txDate = source.get_TxDate();
final Date date = new GregorianCalendar(txDate.get_Year(), txDate.get_Month() - 1, txDate.get_Day(), txDate.get_Hour(), txDate.get_Minute(), txDate.get_Second()).getTime();
final String user = source.get_UserLogin();
final String actionString = source.GetActionString();
final String comment = source.get_Comment();
return new RawChangeInfo(name, miscInfo1, miscInfo2, String.valueOf(txId), date, user, actionString, comment, type);
}
});
}