Commits

Ian Cordasco committed dffc8ed

Fixes #86 on bitbucket

Create hgrc if it doesn't exist.

  • Participants
  • Parent commits 4bee256

Comments (0)

Files changed (1)

 
 
 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'):