Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 2278
72d794b6fef8
parent 2222
105f425944a2
child 2280
8e85ca3fabe7
equal deleted inserted replaced
2276:52ec544a6c74 2278:72d794b6fef8
1885 def hgEditUserConfig(self): 1885 def hgEditUserConfig(self):
1886 """ 1886 """
1887 Public method used to edit the user configuration file. 1887 Public method used to edit the user configuration file.
1888 """ 1888 """
1889 cfgFile = getConfigPath() 1889 cfgFile = getConfigPath()
1890 if not os.path.exists(cfgFile):
1891 try:
1892 f = open(cfgFile, "w")
1893 f.close()
1894 except (IOError, OSError):
1895 # ignore these
1896 pass
1890 self.userEditor = MiniEditor(cfgFile, "Properties") 1897 self.userEditor = MiniEditor(cfgFile, "Properties")
1891 self.userEditor.show() 1898 self.userEditor.show()
1892 1899
1893 def hgEditConfig(self, name): 1900 def hgEditConfig(self, name):
1894 """ 1901 """

eric ide

mercurial