The problem can be trivially illustrated:
hg init temp cd temp touch a hg ci -A -m file hg rm a mkdir a hg ci -m dir hg up -r0
The last command failed with abort: Is a directory: a (or the more cryptic Access is denied on Windows).
Is there a workaround?
I ran into this exact issue when converting an obsolete code base. I really need to fully automate the conversion, since I have dozens of versions of a huge code base to work with, and the synonymous / dir file can happen anytime.
source share