Mercurial > hg
comparison mercurial/localrepo.py @ 1260:4603eef60237
hgweb: use ui:username rather than web:contact
This also removes the creation of .hg/hgrc with web:contact at init time.
author | mpm@selenic.com |
---|---|
date | Thu, 15 Sep 2005 14:05:48 -0500 |
parents | 1945754e466b |
children | 50553b99a5c9 |
comparison
equal
deleted
inserted
replaced
1259:f75567782aba | 1260:4603eef60237 |
---|---|
37 self.decodepats = None | 37 self.decodepats = None |
38 | 38 |
39 if create: | 39 if create: |
40 os.mkdir(self.path) | 40 os.mkdir(self.path) |
41 os.mkdir(self.join("data")) | 41 os.mkdir(self.join("data")) |
42 f = self.opener("hgrc", "w") | |
43 f.write("[web]\n") | |
44 f.write("contact = %s\n" % ui.shortuser(ui.username())) | |
45 | 42 |
46 self.dirstate = dirstate.dirstate(self.opener, ui, self.root) | 43 self.dirstate = dirstate.dirstate(self.opener, ui, self.root) |
47 try: | 44 try: |
48 self.ui.readconfig(self.opener("hgrc")) | 45 self.ui.readconfig(self.opener("hgrc")) |
49 except IOError: pass | 46 except IOError: pass |