You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Martin Tomes <li...@tomes.org> on 2005/07/14 09:55:43 UTC

[PATCH] Pre-commit hook that stops case insensitive collisions (rewrite).

This is a replacement for the script check-case-insensitive.pl which I 
wrote some time ago.  This is my first ever Python program to please be 
gentle with me:-)

   + This should be faster than the Perl version.
   + It uses the Python language bindings.
   + It handles accented characters properly.
   + It won't miss any conflicts. (The Perl version can)

I have tested it on Linux and tried it briefly on a Windows server.

kfogel: I have commit access for check-case-insensitive.pl, does that 
mean I can commit this if the response is favourable?

[[[
Pre-commit hook that stops case insensitive collisions.

This script can be called from a pre-commit hook on either Windows or a 
Unix like operating system.  It implements the checks required to ensure 
that the repository acts in a way which is compatible with a case 
insensitive file system.

When a file is added this script checks the file tree in the repository 
for files which would be the same name on a case insensitive file system 
and rejects the commit if there is a match.

    * tools/hook-scripts/check-case-insensitive.py
]]]

-- 
Martin Tomes
echo 'martin at tomes x org x uk'\
  | sed -e 's/ x /\./g' -e 's/ at /@/'

The Subversion Wiki is at http://www.subversionary.org/

Re: [PATCH] Pre-commit hook that stops case insensitive collisions (rewrite).

Posted by Martin Tomes <li...@tomes.org>.
Marcus Rueckert wrote:
> On 2005-07-14 10:55:43 +0100, Martin Tomes wrote:
> 
>>This is a replacement for the script check-case-insensitive.pl which I 
>>wrote some time ago.  This is my first ever Python program to please be 
>>gentle with me:-)
> 
> does it handle commits where i commit "foo" and "Foo" at the same time?

Yes.

-- 
Martin Tomes
echo 'martin at tomes x org x uk'\
  | sed -e 's/ x /\./g' -e 's/ at /@/'

The Subversion Wiki is at http://www.subversionary.org/

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

Re: [PATCH] Pre-commit hook that stops case insensitive collisions (rewrite).

Posted by Marcus Rueckert <da...@web.de>.
On 2005-07-14 10:55:43 +0100, Martin Tomes wrote:
> This is a replacement for the script check-case-insensitive.pl which I 
> wrote some time ago.  This is my first ever Python program to please be 
> gentle with me:-)
> 
>   + This should be faster than the Perl version.
>   + It uses the Python language bindings.
>   + It handles accented characters properly.
>   + It won't miss any conflicts. (The Perl version can)
> 
> I have tested it on Linux and tried it briefly on a Windows server.

does it handle commits where i commit "foo" and "Foo" at the same time?

darix


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

Re: [PATCH] Pre-commit hook that stops case insensitive collisions (rewrite).

Posted by kf...@collab.net.
Martin Tomes <li...@tomes.org> writes:
> This is a replacement for the script check-case-insensitive.pl which I
> wrote some time ago.  This is my first ever Python program to please
> be gentle with me:-)
> 
>    + This should be faster than the Perl version.
>    + It uses the Python language bindings.
>    + It handles accented characters properly.
>    + It won't miss any conflicts. (The Perl version can)
> 
> I have tested it on Linux and tried it briefly on a Windows server.
> 
> kfogel: I have commit access for check-case-insensitive.pl, does that
> mean I can commit this if the response is favourable?

IMHO your line in COMMITTERS already implies "yes" to this :-).

-Karl

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