You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by AN...@L-3Com.com on 2008/09/23 19:25:18 UTC

filename case insensitivity in subversion?

Hi,

At risk of beating a dead horse, I have to ask if there is a way to make
svnserve case insensitive?

We have users of studio 2008 that are having issues as studio 2008 seems
to lose filename case persistence.

MS admitted the issue for studio 2005 and even patched one instance, but
I can't find anything for 2008 yet.

http://support.microsoft.com/kb/935935/en-us

I also don't see a way to modify the python scripts when using svnserve.
I think we are using pre-compiled binaries.  If we compiled everything
ourselves (svnserve, not the apache interface), could we use things like
the following?
http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/case-insensit
ive.py

Also, does anyone have experience using that script?  It looks like it
just throws an error when case sensitivity issues occur?  It doesn't
actually do anything like change all names to lower case, etc?  What is
its actual behavior?

Has any (recent) thought been make to make subversion archives case
insensitive (maybe even on an repository by repository basis)?  We do
mixed development here and some systems actually are case sensitive.  It
might be nice to be able to create Microsoft only repositories with
case-insensitivity or a force to all lower/upper case.

Thanks,

Andy

 

 


Re: filename case insensitivity in subversion?

Posted by Ed <SV...@0x1b.com>.
On Tue, Sep 23, 2008 at 8:46 PM, Ryan Schmidt
<su...@ryandesign.com> wrote:
>
> On Sep 23, 2008, at 2:25 PM, ANDREW.LUCAS@L-3Com.com wrote:
>
>> At risk of beating a dead horse, I have to ask if there is a way to make
>> svnserve case insensitive?
>
> There isn't.
>
>> We have users of studio 2008 that are having issues as studio 2008 seems
>> to lose filename case persistence.
>> MS admitted the issue for studio 2005 and even patched one instance, but I
>> can't find anything for 2008 yet.
>> http://support.microsoft.com/kb/935935/en-us
>
> Sounds like an issue you need to take up with Microsoft.
>
>> I also don't see a way to modify the python scripts when using svnserve.
>>  I think we are using pre-compiled binaries.  If we compiled everything
>> ourselves (svnserve, not the apache interface), could we use things like the
>> following?
>>  http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/case-insensitive.py
>
> I think you misunderstand...
>
> You simply write a pre-commit hook and place it in your repository's hooks
> directory. From your pre-commit hook script, you can call
> case-insensitive.py to prevent commits of files whose names would differ
> from existing files only by case. You can read more about hooks in the book:
>
> http://svnbook.red-bean.com/en/1.5/svn.reposadmin.create.html#svn.reposadmin.create.hooks
>
>> Also, does anyone have experience using that script?  It looks like it
>> just throws an error when case sensitivity issues occur?  It doesn't
>> actually do anything like change all names to lower case, etc?  What is its
>> actual behavior?
>
> You're correct. It prevents incorrect commits.
>
> pre-commit hook scripts cannot change incoming transactions; they can only
> prevent those that do not pass whatever criteria you want to set.
>
>> Has any (recent) thought been make to make subversion archives case
>> insensitive (maybe even on an repository by repository basis)?  We do mixed
>> development here and some systems actually are case sensitive.  It might be
>> nice to be able to create Microsoft only repositories with
>> case-insensitivity or a force to all lower/upper case.
>
>
> Not that I'm aware of.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

A utility like 'detox' can fix case problems if called before a
commit. You either want to wrap SVN or I think TortoiseSVN allows for
running a script before a commit. not certain, I haven't used M$
products this century.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: filename case insensitivity in subversion?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 23, 2008, at 2:25 PM, ANDREW.LUCAS@L-3Com.com wrote:

> At risk of beating a dead horse, I have to ask if there is a way to  
> make svnserve case insensitive?

There isn't.

> We have users of studio 2008 that are having issues as studio 2008  
> seems to lose filename case persistence.
> MS admitted the issue for studio 2005 and even patched one  
> instance, but I can’t find anything for 2008 yet.
> http://support.microsoft.com/kb/935935/en-us

Sounds like an issue you need to take up with Microsoft.

> I also don’t see a way to modify the python scripts when using  
> svnserve.  I think we are using pre-compiled binaries.  If we  
> compiled everything ourselves (svnserve, not the apache interface),  
> could we use things like the following?  http://svn.collab.net/ 
> repos/svn/trunk/contrib/hook-scripts/case-insensitive.py

I think you misunderstand...

You simply write a pre-commit hook and place it in your repository's  
hooks directory. From your pre-commit hook script, you can call case- 
insensitive.py to prevent commits of files whose names would differ  
from existing files only by case. You can read more about hooks in  
the book:

http://svnbook.red-bean.com/en/1.5/ 
svn.reposadmin.create.html#svn.reposadmin.create.hooks

> Also, does anyone have experience using that script?  It looks like  
> it just throws an error when case sensitivity issues occur?  It  
> doesn’t actually do anything like change all names to lower case,  
> etc?  What is its actual behavior?

You're correct. It prevents incorrect commits.

pre-commit hook scripts cannot change incoming transactions; they can  
only prevent those that do not pass whatever criteria you want to set.

> Has any (recent) thought been make to make subversion archives case  
> insensitive (maybe even on an repository by repository basis)?  We  
> do mixed development here and some systems actually are case  
> sensitive.  It might be nice to be able to create Microsoft only  
> repositories with case-insensitivity or a force to all lower/upper  
> case.


Not that I'm aware of.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org