This is what happens when one tests only with 'foo' and 'bar' :-)
1 patch for repository http://darcs.net:
patch f11edf56b2f9a3f407646253d06a78e966a37f31
Author: Guillaume Hoffmann <guillaumh@gmail.com>
Date: Tue Feb 17 19:32:48 ART 2015
* resolve issue2410: detect replaces even with tokens of different lengths
Interesting, you removed an explicit condition for the tokens to have
the same length. What might have been the idea of that?
Anyway, good move, accepted. And thanks for adding a few extra comments ;-)
The fromMaybe bug (see my comment to issue2410) is from
Darcs.Repository.Util.getForceReplace. Looks like the bug was only
uncovered by this patch, not caused by it.
Despite the ugly path conversion code in getReplaces (fromJust $
simpleSubPath $ fn2fp $ normPath f) the path that is passed to findFile
is correct. That means either findFile is broken or the passed tree is
not what we expect.