Show More
@@ -624,7 +624,7 b' def clone(ui, source, dest=None, **opts)' | |||||
624 | abspath = os.path.abspath(source) |
|
624 | abspath = os.path.abspath(source) | |
625 | if not opts['pull']: |
|
625 | if not opts['pull']: | |
626 | copy = True |
|
626 | copy = True | |
627 |
|
627 | |||
628 | if copy: |
|
628 | if copy: | |
629 | try: |
|
629 | try: | |
630 | # we use a lock here because if we race with commit, we |
|
630 | # we use a lock here because if we race with commit, we | |
@@ -652,7 +652,7 b' def clone(ui, source, dest=None, **opts)' | |||||
652 | repo = hg.repository(ui, dest, create=1) |
|
652 | repo = hg.repository(ui, dest, create=1) | |
653 | repo.pull(other) |
|
653 | repo.pull(other) | |
654 |
|
654 | |||
655 | f = repo.opener("hgrc", "w") |
|
655 | f = repo.opener("hgrc", "w", text=True) | |
656 | f.write("[paths]\n") |
|
656 | f.write("[paths]\n") | |
657 | f.write("default = %s\n" % abspath) |
|
657 | f.write("default = %s\n" % abspath) | |
658 |
|
658 |
General Comments 0
You need to be logged in to leave comments.
Login now