regression in mq: directory names are uppercased since hg 2.0.2 and thg 2.2.2

Dominik Psenner dpsenner at
Fri Feb 10 04:00:12 CST 2012


I've ran into a nasty bug with mq on thg 2.2.2 / mercurial 2.0.2 and I'm
unsure whether it is thg or mercurial related. Therefore I cross post it on
both mailing lists.

The problem is that when files are added to a patch, sometimes parts of
their path become uppercased. For example while doing the equivalent of the
following by using thg:

$ mkdir Modules/API/Set
$ touch Modules/API/Set/ASetFormula.cs
$ hg add Modules/API/Set/ASetFormula.cs
$ hg qnew

The patch looks like:

diff -r 4ca10dbdf0ba Modules/API/SET/ASetFormula.cs
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Modules/API/SET/ASetFormula.cs	Fri Feb 10 10:44:25 2012 +0100

Instead of:

diff -r 4ca10dbdf0ba Modules/API/Set/ASetFormula.cs
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Modules/API/Set/ASetFormula.cs	Fri Feb 10 10:44:25 2012 +0100

The outcome can be fixed by doing:

$ hg qpop
$ edit patch manually and fix casing
$ hg qpush

But with the next qrefresh the casing is again broken. This did not happen
before thg 2.2.2 / mercurial 2.0.2. Did someone else run into this problem


More information about the Mercurial-devel mailing list