I am using Nuget with the package recovery feature enabled . So the folder /packagesis in the ignore list ( .hgignoresince I am using mercurial). This works fine on my CI (Teamcity) server.
To be able to run xUnit tests, I added the xunit.runners package. However, this package contains only the folder tools, and after it was added, no changes were detected using mercurial (nothing new to commit). It seems that only the updated folder /packageshas been updated.
How to enable package recovery for such packages (containing only tools)?
So far, the only solution found is to use the regexp syntax in .hgignore:
syntax: regexp
packages/(?!xunit.runner).*
But in this case, it simply saves the entire contents of the package in the original control.
source
share