[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tortoisesvn-dev
Subject:    Re: (no subject)
From:       Stefan_Küng <tortoisesvn () gmail ! com>
Date:       2016-11-11 15:49:54
Message-ID: fe9a5267-9cb5-c731-a6ca-cf62e4171ff4 () gmail ! com
[Download RAW message or body]

On 10.11.2016 20:21, Julien Cugnière wrote:
> Hi,
>
> Today, I stumbled into a situation where TortoiseSVN allowed the user
> to do something that it should probably prevent. Though I'm not sure
> it can be called a bug.
>
> The scenario is that an inexperienced user is trying to create a
> branch "B" from "A" :
>
> 1. In a working copy, right-click on folder "A", and open the
> "Branch/tag" dialog.
> 2. Copy the URL displayed in "From WC / URL", and paste it into the
> "To path:" field (yes, I know...)
> 3. In the URL that was just pasted, replace "A" with "B". This step is
> not strictly required to reproduce the problem.
> 4. Check the option "Create intermediate folders".
> 5. Click "Ok".
>
> If the path entered in step 2/3 looks like "svn://127.0.0.1/repo/B",
> Tortoise will then proceed to create the following folders at the root
> of the repository :
>
>     /svn:/
>     /svn:/127.0.0.1/
>     /svn:/127.0.0.1/repo/
>     /svn:/127.0.0.1/repo/B/
>
> This succeeds, because SVN is OK with folders containing ":". However
> Windows is not, and any attempt to checkout or update a working copy
> of the root of the repository will result in the following error:
>
>     '.' is not valid as filename in directory 'c:\path\to\working\copy'
>
> Thankfully, once one figures out what is going on, the problem can be
> fixed easily, by using the repo-browser to delete the offending
> folder. But it sure led to some anxiety :)
>
> This is a user error, but maybe TortoiseSVN could prevent the user
> from creating a path containing characters invalid in Windows, just
> like it prevents users from creating files that differ only by case.
>
> Anyway, as always, thank you for the hard work put into the
> development of TortoiseSVN !

Improved the detection or such problems in r27546.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3193527

To unsubscribe from this discussion, e-mail: [dev-unsubscribe@tortoisesvn.tigris.org].
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic