Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 2718
af0ba4c4bea6
parent 2597
951e631c9c1d
child 2771
281c9b30dd91
equal deleted inserted replaced
2714:9f8529263422 2718:af0ba4c4bea6
1904 from .HgUtilities import getConfigPath 1904 from .HgUtilities import getConfigPath
1905 cfgFile = getConfigPath() 1905 cfgFile = getConfigPath()
1906 if not os.path.exists(cfgFile): 1906 if not os.path.exists(cfgFile):
1907 try: 1907 try:
1908 f = open(cfgFile, "w") 1908 f = open(cfgFile, "w")
1909 f.write("[ui]\nusername = Firstname Lastname <email_address>\n")
1909 f.close() 1910 f.close()
1910 except (IOError, OSError): 1911 except (IOError, OSError):
1911 # ignore these 1912 # ignore these
1912 pass 1913 pass
1913 self.userEditor = MiniEditor(cfgFile, "Properties") 1914 self.userEditor = MiniEditor(cfgFile, "Properties")

eric ide

mercurial