--- 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()