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