Package org.uberfire.java.nio.base.options

Examples of org.uberfire.java.nio.base.options.CherryPickCopyOption


        logger.debug("IoService " + ioService);

        Path fromBranchPath = ioService.get(URI.create("default://" + fromBranchName + "@" + gitRepo));
        Path toBranchPath = ioService.get(URI.create("default://" + toBranchName + "@" + gitRepo));

        CherryPickCopyOption copyOption = new CherryPickCopyOption(orderedCommits);
        String outcome = "unknown";
        try {
            logger.debug("Cherry pick command execution");
            ioService.copy(fromBranchPath, toBranchPath, copyOption);
View Full Code Here


        final Path target2 = PROVIDER.getPath( URI.create( "git://other_branch2@cherrypick-test-repo" ) );
        PROVIDER.copy( source, target2 );

        {
            PROVIDER.copy( source, target, new CherryPickCopyOption( commit2CherryPick ) );

            String result = convertStreamToString( PROVIDER.newInputStream( PROVIDER.getPath( URI.create( "git://other_branch@cherrypick-test-repo/myfile1.txt" ) ) ) );
            assertThat( result ).isEqualTo( cherryPickContent );
        }

        {
            PROVIDER.copy( source, target2, new CherryPickCopyOption( commit2CherryPick, commit2CherryPick2 ) );

            final String result = convertStreamToString( PROVIDER.newInputStream( PROVIDER.getPath( URI.create( "git://other_branch2@cherrypick-test-repo/myfile1.txt" ) ) ) );
            assertThat( result ).isEqualTo( cherryPickContent2 );
        }
    }
View Full Code Here

TOP

Related Classes of org.uberfire.java.nio.base.options.CherryPickCopyOption

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.