Casestop Extension
This extension is not distributed with Mercurial.
Author: Friedrich Kastner-Masilko
Repository: http://hg.osdn.net/view/mercurialextensions/timestamp
Compatibility:
Mercurial version x |
Extension version |
1.1.2 <= x < 2.0 |
|
2.0 |
|
2.0 < x < 2.6 |
unsupported |
2.6 <= x |
This extension is still in alpha, use it at your own risk.
Overview
This extension stops you from commiting a CaseFolding collision. In older versions of Mercurial, it was possible to introduce case-folding collisions by means of Merge and RebaseExtension while using a repository solely on case-folding file-systems like NTFS. In addition, such a collision can not be detected by the user until he tries to update back to this commit.
Furthermore, on projects using repos shared by users of Windows and POSIX-systems, it is easy for a POSIX user to cause the Windows folks a hard time. With this extension, you'll be stopped before commiting the crime...
Configuration 1.2 or higher
Configure your .hgrc to enable the extension by adding following lines:
[extensions] casestop = path/to/casestop.py
This will already install the precommit hook.
Configuration 1.1.2
Configure your .hgrc to enable the precommit hook:
[hooks] precommit.casestop = python:hgext.casestop.hook