fromSpec = "1";
}
// Convert the fromSpec to both a date AND a transaction id by looking up
// the nearest transaction in the depot.
Transaction fromTransaction = getDepotTransaction( repository, stream, fromSpec );
long fromTranId = 1;
if ( fromTransaction != null )
{
// This tran id is less than or equal to the date/tranid we requested.
fromTranId = fromTransaction.getTranId();
if ( startDate == null )
{
startDate = fromTransaction.getWhen();
}
}
if ( endDate != null )
{
toSpec = AccuRevScmProviderRepository.formatTimeSpec( endDate );
}
else if ( toSpec == null )
{
toSpec = "highest";
}
Transaction toTransaction = getDepotTransaction( repository, stream, toSpec );
long toTranId = 1;
if ( toTransaction != null )
{
toTranId = toTransaction.getTranId();
if ( endDate == null )
{
endDate = toTransaction.getWhen();
}
}
startVersion = new ScmRevision( repository.getRevision( stream, fromTranId ) );
endVersion = new ScmRevision( repository.getRevision( stream, toTranId ) );