[ 
https://issues.apache.org/jira/browse/SCM-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17961201#comment-17961201
 ] 

ASF GitHub Bot commented on SCM-368:
------------------------------------

jira-importer commented on issue #589:
URL: https://github.com/apache/maven-scm/issues/589#issuecomment-2964605571

   **[Joerg 
Schaible](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=joehni)** 
commented
   
   Note, that the following snippet makes wrong assumptions:
   
   ```
   if ( settings.isUseCygwinPath() )
   {
       workingDir = "/cygdrive/" + workingDir;
       workingDir = StringUtils.replace( workingDir, ":", "" );
       workingDir = StringUtils.replace( workingDir, "\\", "/" );
   }
   ```
   
   "/cygdrive" may not exist at all. The cygdrive prefix can be set to 
anything. See for example on my system:
   
   ```
   $ mount --show-cygdrive-prefix
   Prefix              Type         Flags
   /mnt                system       binmode
   ```
   
   Cygwin users set this also often to "/dev" or even "/" (although not 
recommended). The cygdrive prefix is currently stored in Windows registry only, 
so you will have to retrieve it calling an external utility.
   




> Windows path length limitations can be overcome by feeding an absolute path 
> to SVN
> ----------------------------------------------------------------------------------
>
>                 Key: SCM-368
>                 URL: https://issues.apache.org/jira/browse/SCM-368
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: Improvement
>          Components: maven-scm-api
>    Affects Versions: 1.0
>         Environment: Any Windows machine
>            Reporter: Kurt Tometich
>            Assignee: Emmanuel Venisse
>            Priority: Minor
>             Fix For: 1.1
>
>
> When calling Subversion with relative paths there is a limit of 255 
> characters to the path length.  If you call Subversion with an absolute path 
> that no longer applies and you now have access to 32K chars.  I have tried 
> this myself and it does work.  Try feeding SVN a path that is relative and is 
> over 255 chars.  It will not be able to complete the transaction.  Now, try 
> to the same path again only as an absolute path and it will successfully 
> complete the transaction.  Here is a link to the forum where I found this 
> information: http://en-us.www.mozilla.com/en-US/firefox/2.0.0.4/firstrun/.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to