Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 2278
72d794b6fef8
parent 2222
105f425944a2
child 2280
8e85ca3fabe7
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Fri Dec 21 08:24:31 2012 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Sat Dec 22 12:22:37 2012 +0100
@@ -1887,6 +1887,13 @@
         Public method used to edit the user configuration file.
         """
         cfgFile = getConfigPath()
+        if not os.path.exists(cfgFile):
+            try:
+                f = open(cfgFile, "w")
+                f.close()
+            except (IOError, OSError):
+                # ignore these
+                pass
         self.userEditor = MiniEditor(cfgFile, "Properties")
         self.userEditor.show()
     

eric ide

mercurial