use of org.apache.maven.scm.ScmRevision in project maven-scm by apache.
the class PerforceChangeLogCommandTest method testGetCommandLineWithStartAndEndChangelists.
public void testGetCommandLineWithStartAndEndChangelists() throws Exception {
System.setProperty(PerforceScmProvider.DEFAULT_CLIENTSPEC_PROPERTY, "foo");
testCommandLineRevs(cmdPrefix + " -c foo changes -t ...@123456,234567", new ScmRevision("123456"), new ScmRevision("234567"));
}
use of org.apache.maven.scm.ScmRevision in project maven-scm by apache.
the class PerforceCheckOutCommandTest method testCommandLine.
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
private void testCommandLine(String scmUrl, String commandLine) throws Exception {
workingDirectory.mkdirs();
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);
}
use of org.apache.maven.scm.ScmRevision in project maven-scm by apache.
the class GitChangeLogCommandTest method testCommandLineDateVersionRanges.
public void testCommandLineDateVersionRanges() 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" + " -- " + StringUtils.quoteAndEscape(workingDirectory.getPath(), '"'));
}
Aggregations