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

RE: svn commit: r36325 - trunk/subversion/libsvn_repos

From: Bert Huijben <rhuijben_at_sharpsvn.net>
Date: Thu, 5 Mar 2009 14:33:47 +0100

> -----Original Message-----
> From: Greg Stein [mailto:gstein_at_gmail.com]
> Sent: donderdag 5 maart 2009 14:26
> To: dev_at_subversion.tigris.org
> Subject: Re: svn commit: r36325 - trunk/subversion/libsvn_repos
>
> On Wed, Mar 4, 2009 at 21:22, Bert Huijben <rhuijben_at_sharpsvn.net> wrote:
> > Author: rhuijben
> > Date: Wed Mar 4 12:22:11 2009
> > New Revision: 36325
> >
> > Log:
> > * subversion/libsvn_repos/repos.c
> > (svn_repos_find_root_path): Resolve endless loop on not absolute path.
> > Reproducable on windows with svn log file:///nonexistant. (basic_tests
> 20)
>
> Why did the previous algorithm fail? Shouldn't "test for is_root"
> work? I'm worried that this change is simply working around a bug, and
> solving a symptom.

This algorithm fails on non absolute paths like
"a/b/c"
-> "a/b"
-> "a"
-> ""
-> ""
(no end)

Between r36310 and r36327, svn_dirent_is_root() gave false for "/" on Windows

"/b/c"
-> "/b"
-> "/"
-> "/"
(no end)

In r36327, was reverted to the old behavior of returning true on "/", so r36325 can be reverted.

        Bert

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1272165
Received on 2009-03-05 14:34:05 CET

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

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