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

Re: [TSVN] case-sensitive filename conflict on commit. How to testthis?

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2005-10-02 17:04:40 CEST

h.larsen@risoe.dk wrote:

> Stefan Küng wrote-->
>> Not really. TSVN can't know that you have another working copy, and
>> it can't know *where* that working copy is located. We could try to
>> list all files in the repository before every commit, but that
>> would just take too long a time ('svn ls' isn't very fast).
> Would you think the implementation of a pre-commit hook to check for
> conflicting filename case, would suffer similar performance problem?

No. The hook script has local access to the repository and is a *lot*
faster in that area. Of course, if you have a very big repository, it
still can take a few seconds for the check to finish.

> I tried the
> http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/check-case-in
> sensitive.py. but only on a very small repos, so this gave no idea of
> performance. I would'nt be surprised if it would be slow due to the
> interpreted nature of the Python program. Problem with this solution
> is that it relies on Python being installed. Better then would be a
> single executable, but maybe it all ends up waiting at the same
> bottleneck as Stefan mentions: "('svn ls' isn't very fast)"

Well, python is not the problem. As I said, the problem lies in 'svn ls'
(or better svn_client_ls2(), the API TSVN uses). If you search the
Subversion dev list, you'll find a whole thread about this issue. The
problem is how Subversion implements the DAV requests over http/https in
that case - it just transfers a *lot* of unused data (unused by
Subversion, but not by other DAV clients). I'm not sure if something
will be changed to fix that issue, or if it even can be fixed.
Ben-Collins Sussman is the guy who knows DAV best...


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sun Oct 2 17:04:57 2005

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.