Package org.apache.maven.scm

Examples of org.apache.maven.scm.ScmRevision


        throws Exception
    {
        Date startDate = getDate( 2003, Calendar.SEPTEMBER, 10, 1, 1, 1, GMT_TIME_ZONE );
        Date endDate = getDate( 2005, Calendar.NOVEMBER, 13, 23, 23, 23, GMT_TIME_ZONE );
   
        testCommandLine( "scm:git:http://foo.com/git", null, startDate, endDate, new ScmRevision( "1" ), new ScmRevision( "10" ),
                         "git whatchanged \"--since=2003-09-10 01:01:01 +0000\" \"--until=2005-11-13 23:23:23 +0000\" --date=iso 1..10"
                         + " -- " + workingDirectory );
    }
View Full Code Here



    public void testCommandLineWithStartVersion()
        throws Exception
    {
        testCommandLine( "scm:git:http://foo.com/git", null, new ScmRevision( "1" ), null,
                         "git whatchanged --date=iso 1.."
                         + " -- " + workingDirectory );
    }
View Full Code Here

    }

    public void testCommandLineWithStartVersionAndEndVersion()
        throws Exception
    {
        testCommandLine( "scm:git:http://foo.com/git", null, new ScmRevision( "1" ), new ScmRevision( "10" ),
                         "git whatchanged --date=iso 1..10"
                         + " -- " + workingDirectory );
    }
View Full Code Here

    }

    public void testCommandLineWithStartVersionAndEndVersionEquals()
        throws Exception
    {
        testCommandLine( "scm:git:http://foo.com/git", null, new ScmRevision( "1" ), new ScmRevision( "1" ),
                         "git whatchanged --date=iso 1..1"
                         + " -- " + workingDirectory );
    }
View Full Code Here

    }

    public void testCommandLineWithStartVersionAndEndVersionAndBranch()
        throws Exception
    {
        testCommandLine( "scm:git:http://foo.com/git", new ScmBranch( "my-test-branch" ), new ScmRevision( "1" ), new ScmRevision( "10" ),
                         "git whatchanged --date=iso 1..10 my-test-branch"
                         + " -- " + workingDirectory );
    }
View Full Code Here

            if ( endDate == null )
            {
                endDate = toTransaction.getWhen();
            }
        }
        startVersion = new ScmRevision( repository.getRevision( stream, fromTranId ) );
        endVersion = new ScmRevision( repository.getRevision( stream, toTranId ) );

        //TODO Split this method in two here. above to convert params to start and end (stream,tranid,date) and test independantly
       
        List<Transaction> streamHistory = Collections.emptyList();
        List<Transaction> workspaceHistory = Collections.emptyList();
View Full Code Here

    }

    public void testCreateJazzLoadCommand()
        throws Exception
    {
        ScmRevision rev = new ScmRevision( "revision" );
        // TODO figure out what Jazz SCM does in terms of branch/tag/revision
        // TODO figure out how/when to load specific files
        Commandline cmd =
            new JazzCheckOutCommand().createJazzLoadCommand( repo, getScmFileSet(), rev ).getCommandline();
        String expected =
View Full Code Here

    public void testCommandline()
        throws Exception   
    {
        TfsScmProviderRepository repo = getScmProviderRepository();
        ScmRevision rev = new ScmRevision( "revision" );
        Commandline cmd = new TfsUpdateCommand().createCommand( repo, getScmFileSet(), rev ).getCommandline();
        String path = repo.getServerPath();
        String expected = "tf get -login:user,password " + path + " -version:Crevision";
        assertCommandLine( expected, getWorkingDirectory(), cmd );
    }
View Full Code Here

        ScmRepository repository = getScmManager().makeScmRepository( scmUrl );
        PerforceScmProviderRepository svnRepository = (PerforceScmProviderRepository) repository
            .getProviderRepository();
        Commandline cl = PerforceCheckOutCommand.createCommandLine( svnRepository, workingDirectory,
                                                                    new ScmRevision( "somelabel" ), "test-test-maven" );

        assertCommandLine( commandLine, null, cl );
    }
View Full Code Here

    private static final String cmdPrefix = "p4 -d " + workingDirectory.getAbsolutePath();

    public void testGetCommandLine()
        throws Exception
    {
        testCommandLine( new ScmRevision( "somelabel" ), null, cmdPrefix + " diff2 -u ...@somelabel ...@now" );
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.scm.ScmRevision

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.