package com.perforce.maven.scm.provider.p4.command.branch; /* * Copyright (c) 2010 Perforce Software. All rights reserved. */ import java.io.File; import org.apache.maven.scm.ScmFileSet; import org.apache.maven.scm.tck.command.branch.BranchCommandTckTest; import org.codehaus.plexus.util.FileUtils; import com.perforce.maven.scm.provider.p4.P4ScmTestUtils; public class P4BranchLogCommandTckTest extends BranchCommandTckTest { /** {@inheritDoc} */ public String getScmUrl() throws Exception { return P4ScmTestUtils.getScmUrl(); } /** {@inheritDoc} */ public void initRepo() throws Exception { P4ScmTestUtils.initRepo(); resetToOrignalFiles(); } protected String getBranch() { return "//depot/branches/p4maven-tck-" + System.currentTimeMillis(); } private void resetToOrignalFiles() throws Exception { checkOut( getWorkingCopy(), getScmRepository() ); ScmFileSet fileSet = new ScmFileSet( getWorkingCopy(), P4ScmTestUtils.getAddedIncludes(), null ); getScmManager().getProviderByUrl( getScmUrl() ).remove( getScmRepository(), fileSet, "Remove previous test files" ); fileSet = new ScmFileSet( getWorkingDirectory() ); getScmManager().getProviderByUrl( getScmUrl() ).edit( getScmRepository(), fileSet ); FileUtils.copyDirectoryStructure( new File( getBasedir(), "src/test/tckdata" ), getWorkingCopy() ); checkIn( getWorkingCopy(), getScmRepository() ); FileUtils.deleteDirectory( getWorkingDirectory() ); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 9519 | dantran | folder rename to match with its artifactId | ||
#3 | 9509 | dantran | adjust TCK's new data location which under src/it/template | ||
#2 | 9471 | dantran |
- cleanup diff command - simplify branch command and full compliant with maven-scm-test - add checkout with branch - add repo's path as client manager lookup key in addition to p4port and rootdir so that we can handle mutiple clients on the same rootdir |
||
#1 | 9451 | dantran | Discover current client |