Mercurial > public > mercurial-scm > hg
comparison mercurial/hg.py @ 6088:3b96cefc1b2b
clone: expand the path before saving it in .hg/hgrc
This should fix issue976
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Wed, 13 Feb 2008 18:37:38 -0200 |
parents | a32a8e50d233 |
children | 28054773438c |
comparison
equal
deleted
inserted
replaced
6087:12856a1742dc | 6088:3b96cefc1b2b |
---|---|
103 | 103 |
104 update: update working directory after clone completes, if | 104 update: update working directory after clone completes, if |
105 destination is local repository | 105 destination is local repository |
106 """ | 106 """ |
107 | 107 |
108 origsource = source | 108 origsource = ui.expandpath(source) |
109 source, rev, checkout = parseurl(ui.expandpath(source), rev) | 109 source, rev, checkout = parseurl(origsource, rev) |
110 | 110 |
111 if isinstance(source, str): | 111 if isinstance(source, str): |
112 src_repo = repository(ui, source) | 112 src_repo = repository(ui, source) |
113 else: | 113 else: |
114 src_repo = source | 114 src_repo = source |