Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 3227
520d79af33af
parent 3226
c8de45d1a853
child 3231
a7c9914d1c41
equal deleted inserted replaced
3226:c8de45d1a853 3227:520d79af33af
2169 """ 2169 """
2170 from .HgUtilities import getConfigPath 2170 from .HgUtilities import getConfigPath
2171 cfgFile = getConfigPath() 2171 cfgFile = getConfigPath()
2172 if not os.path.exists(cfgFile): 2172 if not os.path.exists(cfgFile):
2173 try: 2173 try:
2174 # TODO: open a dialog to ask for the basic data
2174 f = open(cfgFile, "w") 2175 f = open(cfgFile, "w")
2175 f.write("[ui]\nusername = Firstname Lastname" 2176 f.write("[ui]\nusername = Firstname Lastname"
2176 " <email_address>\n") 2177 " <email_address>\n")
2177 f.close() 2178 f.close()
2178 except (IOError, OSError): 2179 except (IOError, OSError):

eric ide

mercurial