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