Mercurial > hg
comparison mercurial/hg.py @ 7048:25961e53a07f
merge with -stable
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Mon, 22 Sep 2008 14:47:21 +0200 |
parents | 7e5f3480c45b e51c0f41f271 |
children | 6788608627c4 |
comparison
equal
deleted
inserted
replaced
7047:277c91fe8384 | 7048:25961e53a07f |
---|---|
221 dir_cleanup.close() | 221 dir_cleanup.close() |
222 | 222 |
223 if dest_repo.local(): | 223 if dest_repo.local(): |
224 fp = dest_repo.opener("hgrc", "w", text=True) | 224 fp = dest_repo.opener("hgrc", "w", text=True) |
225 fp.write("[paths]\n") | 225 fp.write("[paths]\n") |
226 fp.write("default = %s\n" % abspath) | 226 # percent needs to be escaped for ConfigParser |
227 fp.write("default = %s\n" % abspath.replace('%', '%%')) | |
227 fp.close() | 228 fp.close() |
228 | 229 |
229 if update: | 230 if update: |
230 dest_repo.ui.status(_("updating working directory\n")) | 231 dest_repo.ui.status(_("updating working directory\n")) |
231 if update is not True: | 232 if update is not True: |