--- a/mercurial/hg.py Wed Oct 08 07:45:51 2014 -0400
+++ b/mercurial/hg.py Mon Oct 06 16:35:02 2014 -0400
@@ -9,9 +9,11 @@
from i18n import _
from lock import release
from node import nullid
+
import localrepo, bundlerepo, unionrepo, httppeer, sshpeer, statichttprepo
import bookmarks, lock, util, extensions, error, node, scmutil, phases, url
import cmdutil, discovery, repoview, exchange
+import ui as uimod
import merge as mergemod
import verify as verifymod
import errno, os, shutil
@@ -429,18 +431,7 @@
destrepo = destpeer.local()
if destrepo:
- template = (
- '# You may want to set your username here if it is not set\n'
- "# globally, or this repository requires a different\n"
- '# username from your usual configuration. If you want to\n'
- '# set something for all of your repositories on this\n'
- '# computer, try running the command\n'
- "# 'hg config --edit --global'\n"
- '# [ui]\n'
- '# username = Jane Doe <jdoe@example.com>\n'
- '[paths]\n'
- 'default = %s\n'
- )
+ template = uimod.samplehgrcs['cloned']
fp = destrepo.opener("hgrc", "w", text=True)
u = util.url(abspath)
u.passwd = None