Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/commands.py @ 1133:899b619a7eb2
Create [web] section with short username as contact on hg init and hg clone.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 28 Aug 2005 18:27:24 +0200 |
parents | ee4f60abad93 |
children | d32b91ebad5d |
line wrap: on
line diff
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -587,8 +587,8 @@ def clone(ui, source, dest=None, **opts) repo = hg.repository(ui, dest, create=1) repo.pull(other) - f = repo.opener("hgrc", "w") - f.write("[paths]\n") + f = repo.opener("hgrc", "a") + f.write("\n[paths]\n") f.write("default = %s\n" % abspath) if not opts['noupdate']: