[PATCH 0 of 3] util.makedirs

Mads Kiilerich mads at kiilerich.com
Sun Aug 21 18:07:42 CDT 2011


Some minimal fixes has been applied to util.makedirs after it was introduced in
3c3b126e5619. They have worked around the fragile recursive model it uses, but
they haven't fixed the real problem. I think the refactorings offered here
would be a better solution. They do however touch "strange" code so there is a
risk that something rely on some corner case behaviors.

But by the way ... why do we have our own makedirs instead of using
os.makedirs? Did it not have mode built in back then?



More information about the Mercurial-devel mailing list