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

Examples of org.apache.maven.scm.provider.accurev.Transaction.addVersion()


        final Date dateTo = getDate( 2009, 0, 12, 13, 0, 0, null );
        final Date keepWhen = getDate( 2009, 0, 2, 9, 0, 0, null );
        final Date promoteWhen = getDate( 2009, 0, 4, 23, 0, 0, null );

        final Transaction promoteOne = new Transaction( 10L, keepWhen, "promote", "aUser" );
        promoteOne.addVersion( 5L, "/./kept/file", "10/5", "5/5", "3/2" );
        promoteOne.setComment( "a Comment" );

        final Transaction promoteTwo = new Transaction( 12L, promoteWhen, "promote", "anOther" );
        promoteTwo.addVersion( 10L, "/./promoted/file", "10/5", "4/2", null );
        promoteTwo.setComment( "my Promotion" );
View Full Code Here


        final Transaction promoteOne = new Transaction( 10L, keepWhen, "promote", "aUser" );
        promoteOne.addVersion( 5L, "/./kept/file", "10/5", "5/5", "3/2" );
        promoteOne.setComment( "a Comment" );

        final Transaction promoteTwo = new Transaction( 12L, promoteWhen, "promote", "anOther" );
        promoteTwo.addVersion( 10L, "/./promoted/file", "10/5", "4/2", null );
        promoteTwo.setComment( "my Promotion" );

        when( accurev.history( "myStream", "36", "42", 0, false, false ) ).thenReturn( Arrays.asList( promoteOne,
                                                                                                      promoteTwo ) );
View Full Code Here

        // and we call hist for tranid + 1 to end trand ii

        Transaction promoteWS5toS4 = new Transaction( 37L, promoteWhen, "promote", "aUser" );
        promoteWS5toS4.setComment( "WS5toS4" );
        promoteWS5toS4.addVersion( 54L, "/./promoted/WS5toS4", "4/5", "5/3", "3/2" );

        Transaction promoteWS7toS4 = new Transaction( 38L, promoteWhen, "promote", "aUser" );
        promoteWS7toS4.setComment( "WS7toS4" );
        promoteWS7toS4.addVersion( 74L, "/./promoted/WS7toS4", "4/11", "7/12", "3/2" );
View Full Code Here

        promoteWS5toS4.setComment( "WS5toS4" );
        promoteWS5toS4.addVersion( 54L, "/./promoted/WS5toS4", "4/5", "5/3", "3/2" );

        Transaction promoteWS7toS4 = new Transaction( 38L, promoteWhen, "promote", "aUser" );
        promoteWS7toS4.setComment( "WS7toS4" );
        promoteWS7toS4.addVersion( 74L, "/./promoted/WS7toS4", "4/11", "7/12", "3/2" );

        when( accurev.history( "stream4", "36", "42", 0, false, false ) ).thenReturn( Arrays.asList( promoteWS5toS4,
                                                                                                     promoteWS7toS4 ) );

        Transaction keepWS5 = new Transaction( 39L, keepWhen, "keep", "anOther" );
View Full Code Here

        when( accurev.history( "stream4", "36", "42", 0, false, false ) ).thenReturn( Arrays.asList( promoteWS5toS4,
                                                                                                     promoteWS7toS4 ) );

        Transaction keepWS5 = new Transaction( 39L, keepWhen, "keep", "anOther" );
        keepWS5.addVersion( 5L, "/./kept/WS5", "5/7", "5/7", "7/21" );
        keepWS5.setComment( "keepWS5" );

        when( accurev.history( "workspace5", "36", "42", 0, false, false ) ).thenReturn( Collections
                                                                                             .singletonList( keepWS5 ) );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.