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

Re: problem using vendor branch feature (folder case mismatch)

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Wed, 2 Dec 2015 19:51:26 +0100

On 02.12.2015 13:34, Stefan Hett wrote:

> I'm wondering the following line here:
> vv = versionedFiles.begin();
>
> While I don't want to waste your time, I can't spend the necessary time
> atm to do a thorough code/design review on that part. So pardon me if
> I'm completely off and the reasoning for that code lies in the intended
> design.
>
> The problem this line might cause is that if the first entry is removed,
> the second entry in the list would never be touched (because of the v++
> increment in the for-loop).
> In addition to that, this code section seems to have a runtime of O(n^2).
> If I'm not mistaken, the following change would resolve both "problems":
>
>
>
> Again, this is all under the presumption that the restart of the loop is
> not essential for this particular code.

You're right. Your implementation is much better!
Committed in r27010.

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=3149168
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-12-02 19:51:34 CET

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

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