mercurialfilemap

Mercurial filemap exclude include... does it not do what docs say?


Converting from subversion, I take the opportunity to clean up the repo, and split it in three mostly independent projects. But... I have a filemap that says

exclude bot
include bot/aobiosbot.py

Which should include everything, except the "bot" subdirectory, but still include the "aobiosbot.py" file in that directory. The trouble is, the converted repo is empty (I test with an "hg clone"). If I add an "include ." as line 1, I get everything but the "bot" dir... including "bot/aobiosbot.py". But I told it to include that file.

(Really, the docs for filemap are bad. Exclude/include options have to be specified exactly. I find I tend to agree with Joel on specs... at least here. Who'd'a thunk...)


Solution

  • I've solved it by taking some code from the dev repo (file hgext/convert/filemap.py). Works lots better. :D