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

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

From: bugreport <M8R-fj4tn21_at_thisisnotmyrealemail.com>
Date: Tue, 22 Apr 2014 18:18:24 -0700 (PDT)

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.

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


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.


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-04-23 03:18:27 CEST

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