[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Repo browser in "Externals" dialog treats another repository as local one

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Wed, 23 Apr 2014 20:03:54 +0200

On 23.04.2014 03:18, bugreport wrote:
> This problem is similar to http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3076663
> but is a little bit different and is only related to the Repository browser in External dialog.
>
> Description:
> If the main repository is located at "REPOSITORY_URL/SOMEPATH" then the repository browser in "Externals" dialog treats url like "REPOSITORY_URL/SOMEPATHfoobar" as a local path in the same repository and not as a different repository.
>
> I installed some toy repos to illustrate the bug.
> Steps to reproduce:
> 1. Using TortoiseSVN do a local checkout of the following repository url: https://xp-dev.com/svn/myproject678
>
> 2. Right-click the checkout folder, go to "TortoiseSVN -> Properties".
>
> 3. Select "svn:externals" line, click "Edit..." You'll see two external folders:
> fromvendor -> https://xp-dev.com/svn/myproject678_vendor
> fromab -> https://xp-dev.com/svn/myproject678ab
> ( http://imagizer.imageshack.us/a/img845/1843/u47z.jpg )
>
> 4. Do not close the dialog, select "fromab" external and click "Edit...". Now you can change the url for the external:
> ( http://imagizer.imageshack.us/a/img836/3694/4j5z.jpg )
>
> 5. Click "..." near the URL field. A repository browser appears that correctly detects the repository url: https://xp-dev.com/svn/myproject678ab
> ( http://imagizer.imageshack.us/a/img842/7025/e94v.jpg )
>
> 6. Do not change anything, simply Click "OK" in a repository browser.
>
> EXPECTED: URL of an External repository is NOT changed
>
> ACHIEVED: URL is changed to ^/ab
> ( http://imagizer.imageshack.us/a/img842/5151/v92g.jpg )
>
> So the repo browser started at url https://xp-dev.com/svn/myproject678ab but after clicking OK it changed it to ^/ab
>
> ---------------
> Notes:
>
> If you save this changes and try to do svn-update then naturally you get an error:
> Error: URL 'https://xp-dev.com/svn/myproject678/ab' at revision 6 doesn't exist
>
> It seems to me there is an error somewhere in regexp that should detect local repository and instead of treating "REPOSITORY_URL/subdir" as local repo it treats "REPOSITORY_URLsubdir" as a local repo.

Created issue #635 for this:
http://code.google.com/p/tortoisesvn/issues/detail?id=635

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3076920
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-04-23 20:03:57 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.