Fixes #86 on bitbucket

Create hgrc if it doesn't exist.
This commit is contained in:
Ian Cordasco 2013-02-25 22:50:57 -05:00
parent eb327cafb1
commit ea1c29ca2e

View file

@ -109,6 +109,10 @@ if __name__ == '__main__':
def _install_hg_hook(path):
if not os.path.isfile(path):
# Make the file so we can avoid IOError's
open(path, 'w+').close()
c = ConfigParser()
c.readfp(open(path, 'r'))
if not c.has_section('hooks'):