Re: Renaming files on win32
Benjamin Pflugmann <[email protected]>
| Newsgroups | gmane.mail.eyebrowse.user,gmane.comp.version-control.subversion.devel |
|---|---|
| Message-ID | <20041223065239.GS9434__5156.87452066249$1103813963$gmane$org@spin.de> |
On Wed 2004-12-22 at 16:09:23 -0500, Gili wrote: > On Wed, 22 Dec 2004 22:02:46 +0100, [email protected] wrote: > > >> and warn the user when necessary at commit time or > >>checkout time. > >> > >You can do this toay with a pre-commit hook. [...] > I'm fine with doing it your way but can you please augment the > official documentation to show how this can be done? I think this is a > big enough issue for win32 that it belongs in the book. The docs already explain pre-commit hooks, what they are good for, and how to get hooks working in general. And you don't have to write that pre-commit hook yourself, because their is already one in the contrib dir, ready to use: http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/check-case-insensitive.pl But I agree with you, the FAQ point regarding Windows case issues could point to that script. > >Like I said, you can't have a case-insensitive comparison that will work > >everywhere, because it's locale-dependent. At the very least, that means > >you can't do the comparison on the server. > > Well, that throws the idea of "pre-commit hooks" out the window > then... Yes and no. Yes, the problem is, that there is no _general_ solution to do this on the server, regardless of whether you use hook-scripts or not. And "no", because the paragraph about hook scripts was not about a general solution, but simply about the fact that whatever solution you choose, you don't need server support to warn your users, but can do that within the pre-commit hook already. It's exists exactly for that kind of use. So if you can restrict your clients to a common locale (you'll notice that kind of discussion at the top of the script mentioned above), you can setup warnings on your server for this. No extra features required. Of course that touches only a small part of the overall issue, but I only intended to clarify the point about the pre-commit hook. Bye, Benjamin.