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

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


            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


        {
            Long id = Long.parseLong( attributes.get( "id" ) );
            Date when = new Date( Long.parseLong( attributes.get( "time" ) ) * 1000 );
            String tranType = attributes.get( "type" );
            String user = attributes.get( "user" );
            currentTran = new Transaction( id, when, tranType, user );
            transactions.add( currentTran );

        }
        else if ( "version".equals( tagName ) )
        {
View Full Code Here

            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$Version

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.