Show More
@@ -105,14 +105,14 b' def clone(ui, source, dest=None, pull=Fa' | |||||
105 | destination is local repository |
|
105 | destination is local repository | |
106 | """ |
|
106 | """ | |
107 |
|
107 | |||
108 | origsource = source |
|
|||
109 | source, rev, checkout = parseurl(ui.expandpath(source), rev) |
|
|||
110 |
|
||||
111 | if isinstance(source, str): |
|
108 | if isinstance(source, str): | |
|
109 | origsource = ui.expandpath(source) | |||
|
110 | source, rev, checkout = parseurl(origsource, rev) | |||
112 | src_repo = repository(ui, source) |
|
111 | src_repo = repository(ui, source) | |
113 | else: |
|
112 | else: | |
114 | src_repo = source |
|
113 | src_repo = source | |
115 | source = src_repo.url() |
|
114 | origsource = source = src_repo.url() | |
|
115 | checkout = None | |||
116 |
|
116 | |||
117 | if dest is None: |
|
117 | if dest is None: | |
118 | dest = defaultdest(source) |
|
118 | dest = defaultdest(source) |
@@ -32,4 +32,8 b' cd ../..' | |||||
32 | hg clone file://a e |
|
32 | hg clone file://a e | |
33 | grep 'file:' e/.hg/hgrc |
|
33 | grep 'file:' e/.hg/hgrc | |
34 |
|
34 | |||
|
35 | # check that path aliases are expanded | |||
|
36 | hg clone -q -U --config 'paths.foobar=a#0' foobar f | |||
|
37 | hg -R f showconfig paths.default | sed -e 's,.*/,,' | |||
|
38 | ||||
35 | exit 0 |
|
39 | exit 0 |
@@ -15,3 +15,4 b' destination directory: a' | |||||
15 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
15 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
16 | a |
|
16 | a | |
17 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
17 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
18 | a#0 |
General Comments 0
You need to be logged in to leave comments.
Login now