Mercurial > hg
changeset 562:be6233a2bfdd
hg clone: only use the absolute path for .hg/hgrc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hg clone: only use the absolute path for .hg/hgrc
manifest hash: 7fb6a265249a3c910c0321eb1efc61c38429ac91
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCxZ5mywK+sNU5EO8RApIwAJwKdex+GwoflS8vKY9h7qA1F4/Z8wCgjkWH
VsKsuPsM97sluArdDZLZsbs=
=0g6X
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Fri, 01 Jul 2005 11:49:58 -0800 |
parents | cdddf4652aec |
children | 42a6a41ab76b |
files | mercurial/commands.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Fri Jul 01 11:24:09 2005 -0800 +++ b/mercurial/commands.py Fri Jul 01 11:49:58 2005 -0800 @@ -296,10 +296,11 @@ d = dircleanup(dest) link = 0 + abspath = source if not (source.startswith("http://") or source.startswith("hg://") or source.startswith("old-http://")): - source = os.path.abspath(source) + abspath = os.path.abspath(source) d1 = os.stat(dest).st_dev d2 = os.stat(source).st_dev if d1 == d2: link = 1 @@ -323,7 +324,7 @@ f = repo.opener("hgrc", "w") f.write("[paths]\n") - f.write("default = %s\n" % source) + f.write("default = %s\n" % abspath) if not opts['noupdate']: update(ui, repo)