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

Re: Repository-Browser opening parent folder?

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-08-24 10:41:52 CEST

Tobias Schäfer wrote:
> hello,
>
> I just merged a revision from trunk to the branch 1.4.x and had entered
> http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk into the from field and
> then called "..." to open the repository browser.
>
> I had expected http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk to be
> opened in the tree. Instead http://tortoisesvn.tigris.org/svn/tortoisesvn
> was opened (note the missing "/trunk")
> The URL at the top of the dialog shows the correct path
> http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk
>
> In SVN::GetRepository the variables url and goodurl both point to
> http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk but returl then
> contains http://tortoisesvn.tigris.org/svn/tortoisesvn (note: missing
> trunk).

SVN::GetRepositoryRoot() (you missed the *Root* part) returns the root
of the repository.

>
> I don't know what is going on here. Stefan?

That's expected. TSVN doesn't know whether the entered url points to a
file or a folder. So it automatically removes the last part of the url
to make *sure* it points to a folder when browsing.
If you append an '/' to the url, it will open at the location you expect.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Aug 24 10:42:11 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.