Package org.apache.maven.scm.provider.accurev

Examples of org.apache.maven.scm.provider.accurev.Transaction


            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 ) );
View Full Code Here

TOP

Related Classes of org.apache.maven.scm.provider.accurev.Transaction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.