maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r656441 - in /maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src: main/java/org/apache/maven/scm/provider/svn/svnexe/command/update/ test/java/org/apache/maven/scm/provider/svn/svnexe/command/update/
Date Wed, 14 May 2008 21:45:18 GMT
Author: evenisse
Date: Wed May 14 14:45:18 2008
New Revision: 656441

URL: http://svn.apache.org/viewvc?rev=656441&view=rev
Log:
[SCM-368] Fix windows path length limitation (http://subversion.tigris.org/faq.html#long-paths)

Modified:
    maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/update/SvnUpdateCommand.java
    maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/test/java/org/apache/maven/scm/provider/svn/svnexe/command/update/SvnUpdateCommandTest.java

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/update/SvnUpdateCommand.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/update/SvnUpdateCommand.java?rev=656441&r1=656440&r2=656441&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/update/SvnUpdateCommand.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/update/SvnUpdateCommand.java
Wed May 14 14:45:18 2008
@@ -104,6 +104,8 @@
                 cl.createArgument().setValue( "-r" );
                 cl.createArgument().setValue( version.getName() );
             }
+
+            cl.createArgument().setValue( workingDirectory.getAbsolutePath() );
         }
         else
         {

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/test/java/org/apache/maven/scm/provider/svn/svnexe/command/update/SvnUpdateCommandTest.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/test/java/org/apache/maven/scm/provider/svn/svnexe/command/update/SvnUpdateCommandTest.java?rev=656441&r1=656440&r2=656441&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/test/java/org/apache/maven/scm/provider/svn/svnexe/command/update/SvnUpdateCommandTest.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/test/java/org/apache/maven/scm/provider/svn/svnexe/command/update/SvnUpdateCommandTest.java
Wed May 14 14:45:18 2008
@@ -40,57 +40,66 @@
     public void testCommandLineWithEmptyTag()
         throws Exception
     {
-        testCommandLine( "scm:svn:http://foo.com/svn/trunk", new ScmTag( "" ), "svn --non-interactive
update" );
+        testCommandLine( "scm:svn:http://foo.com/svn/trunk", new ScmTag( "" ),
+                         "svn --non-interactive update " + getUpdateTestFile().getAbsolutePath()
);
     }
 
     public void testCommandLineWithEmptyBranch()
         throws Exception
     {
-        testCommandLine( "scm:svn:http://foo.com/svn/trunk", new ScmBranch( "" ), "svn --non-interactive
update" );
+        testCommandLine( "scm:svn:http://foo.com/svn/trunk", new ScmBranch( "" ),
+                         "svn --non-interactive update " + getUpdateTestFile().getAbsolutePath()
);
     }
 
     public void testCommandLineWithEmptyVersion()
         throws Exception
     {
-        testCommandLine( "scm:svn:http://foo.com/svn/trunk", new ScmRevision( "" ), "svn
--non-interactive update" );
+        testCommandLine( "scm:svn:http://foo.com/svn/trunk", new ScmRevision( "" ),
+                         "svn --non-interactive update " + getUpdateTestFile().getAbsolutePath()
);
     }
 
     public void testCommandLineWithWhitespaceTag()
         throws Exception
     {
-        testCommandLine( "scm:svn:http://foo.com/svn/trunk", new ScmTag( "  " ), "svn --non-interactive
update" );
+        testCommandLine( "scm:svn:http://foo.com/svn/trunk", new ScmTag( "  " ),
+                         "svn --non-interactive update " + getUpdateTestFile().getAbsolutePath()
);
     }
 
     public void testCommandLineWithWhitespaceBranch()
         throws Exception
     {
-        testCommandLine( "scm:svn:http://foo.com/svn/trunk", new ScmBranch( "  " ), "svn
--non-interactive update" );
+        testCommandLine( "scm:svn:http://foo.com/svn/trunk", new ScmBranch( "  " ),
+                         "svn --non-interactive update " + getUpdateTestFile().getAbsolutePath()
);
     }
 
     public void testCommandLineWithWhitespaceRevision()
         throws Exception
     {
-        testCommandLine( "scm:svn:http://foo.com/svn/trunk", new ScmRevision( "  " ), "svn
--non-interactive update" );
+        testCommandLine( "scm:svn:http://foo.com/svn/trunk", new ScmRevision( "  " ),
+                         "svn --non-interactive update " + getUpdateTestFile().getAbsolutePath()
);
     }
 
     public void testCommandLineWithoutTag()
         throws Exception
     {
-        testCommandLine( "scm:svn:http://foo.com/svn/trunk", null, "svn --non-interactive
update" );
+        testCommandLine( "scm:svn:http://foo.com/svn/trunk", null,
+                         "svn --non-interactive update " + getUpdateTestFile().getAbsolutePath()
);
     }
 
     public void testCommandLineTag()
         throws Exception
     {
         testCommandLine( "scm:svn:http://anonymous@foo.com/svn/trunk", new ScmRevision( "10"
),
-                         "svn --username anonymous --non-interactive update -r 10" );
+                         "svn --username anonymous --non-interactive update -r 10 " +
+                             getUpdateTestFile().getAbsolutePath() );
     }
 
     public void testCommandLineWithUsernameAndTag()
         throws Exception
     {
         testCommandLine( "scm:svn:http://anonymous@foo.com/svn/trunk", new ScmRevision( "10"
),
-                         "svn --username anonymous --non-interactive update -r 10" );
+                         "svn --username anonymous --non-interactive update -r 10 " +
+                             getUpdateTestFile().getAbsolutePath() );
     }
 
     public void testCommandLineWithRelativeURLTag()



Mime
View raw message