Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: (no subject)

Project highlights: :. Download .: :. Support .: :. FAQ .: :. Translations .: :. Donate .: :. Report Bug .:

tortoisesvn
Discussion topic

Back to topic list

Re: (no subject)

Author steveking
Full name Stefan Küng
Date 2016-11-11 07:49:39 PST
Message 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

« Previous message in topic | 2 of 3 | Next message in topic »

Messages

Show all messages in topic

(no subject) Julien Cugnière <julien dot cugniere at gmail dot com> Julien Cugnière <julien dot cugniere at gmail dot com> 2016-11-10 11:21:30 PST
     Re: (no subject) steveking Stefan Küng 2016-11-11 07:49:39 PST
         Re: (no subject) Julien Cugnière <julien dot cugniere at gmail dot com> Julien Cugnière <julien dot cugniere at gmail dot com> 2016-11-14 11:24:14 PST
Messages per page: