You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@subversion.apache.org by "Vasily Galkin (JIRA)" <ji...@apache.org> on 2016/09/14 14:24:20 UTC

[jira] [Commented] (SVN-4256) Case sensitive current working directory.

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

Vasily Galkin commented on SVN-4256:
------------------------------------

Encountered this issue while trying to integrate visual studio's external command feature with svn 1.9.4 via python script (meld program).
For some strange reason visual studio passes file path to external command in lowercase. Python software happens to execute subversion with current directory extracted form command line argument passed by visual studio.

From the user point of view the "svn status" command the behavior looks strange: it can fix the case in the command line argument, but can't fix case it in the current directory.

Here is the output of python executed from the root of subversion's itself checkout containing file doc/README:
(note the changing case of letter D in "doc")
{noformat}
Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 20:20:57) [MSC v.1600 64 bit (AMD64)] on win32    
Type "help", "copyright", "credits" or "license" for more information.                            
>>> import subprocess                                                                             
>>> subprocess.check_output("svn status -v doc/README", cwd='.')                        
b'           1760700  1098115 danielsh     doc\\README\r\n'                             
>>> subprocess.check_output("svn status -v Doc/README", cwd='.')                        
b'           1760700  1098115 danielsh     doc\\README\r\n'                             
>>> subprocess.check_output("svn status -v README", cwd='doc')                          
b'           1760700  1098115 danielsh     README\r\n'                                  
>>> subprocess.check_output("svn status -v README", cwd='Doc')                          
svn: warning: W155010: The node 'D:\apps\subversion\subversion\Doc\README' was not found
b''                                                                                     
{noformat}

> Case sensitive current working directory.
> -----------------------------------------
>
>                 Key: SVN-4256
>                 URL: https://issues.apache.org/jira/browse/SVN-4256
>             Project: Subversion
>          Issue Type: Bug
>          Components: cmdline client
>    Affects Versions: 1.7.x
>         Environment: Windows 7
>            Reporter: Subversion Importer
>             Fix For: unscheduled
>
>
> {noformat:nopanel=true}
> Using a powershell console and standing in the working copy typing:
> PS c:\temp\WC> svn mkdir APPLE
> PS c:\temp\WC> Set-Location apple
> PS c:\temp\WC\apple>svn mkdir banana
> results in:
> svn: E150000: Can't find parent directory's node while trying to add
> 'C:\temp\WC\apple\banana'
> svn: E155010: The node 'C:\apple' was not found.
> Set-Location is powershell's version of "cd". The same error happens with its 
> Set-LocationEx cmdlet.
> The user expects the command to create the banana directory without errors.
> In the similar case:
> svn mkdir APPLE
> svn mkdir apple\banana
> it works as expected, the banana directory is created without errors.
> {noformat}
> Original issue reported by *bofh69*



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)