Hey all,
My favored means of source control is Mercurial, but when I use
turbogears.testutil in a Mercurial repo, I get a "ValueError: Empty
module name" as soon as I import the module.
This is because testutil searches the /whole/ tree for configuration
files, including getting into the .hg/store, which leads to it finding
files it doesn't like, and subsequently crashing.
In my local distribution, I fixed this by simply changing line 41 in
testutil.py. It now reads:
if w[0].endswith("config") and "/.hg/" not in w[0]:
There are a number of reasons why this is less than ideal, but it
should work on any Unix system, and it's pretty unlikely it'd conflict
with anyone else's configuration. In an perfect world, there'd be
some sort of tgignore property or something...
Have I missed anything that would fix this without modifying the
source?
Cheers,
Hunter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---