Casestop Extension

This extension is not distributed with Mercurial.

Author: Friedrich Kastner-Masilko



Mercurial version x

Extension version

1.1.2 <= x < 2.0




2.0 < x < 2.6


2.6 <= x


This extension is still in alpha, use it at your own risk.


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:

casestop = path/to/

This will already install the precommit hook.

Configuration 1.1.2

Configure your .hgrc to enable the precommit hook:

precommit.casestop = python:hgext.casestop.hook


CasestopExtension (last edited 2013-11-13 17:04:56 by FriedrichKastner)