Change fb-hgext's sparse to treat patterns correctly (this was brought to
my attention by @martinvonz on the mailing list).
This patch makes sure that:
reporoot/subdir$ hg --include **/file
results in subdir/**/file being included rather than subdir/.
Nit: don't use backslash for line continuations when you could use (...) parentheses instead:
You also have a logic error here. You are filtering out patterns that are already absolute; if pats = ['glob:*.py', 'path:cwd/path'] you only retain ['glob:cwd/*.py'].