Show More
@@ -221,7 +221,7 b' def clone(ui, source, dest=None, pull=Fa' | |||||
221 | src_repo = repository(ui, source) |
|
221 | src_repo = repository(ui, source) | |
222 | else: |
|
222 | else: | |
223 | src_repo = source |
|
223 | src_repo = source | |
224 | branch = (None, []) |
|
224 | branch = (None, branch or []) | |
225 | origsource = source = src_repo.url() |
|
225 | origsource = source = src_repo.url() | |
226 | rev, checkout = addbranchrevs(src_repo, src_repo, branch, rev) |
|
226 | rev, checkout = addbranchrevs(src_repo, src_repo, branch, rev) | |
227 |
|
227 |
@@ -209,4 +209,14 b' EOF' | |||||
209 | python simpleclone.py |
|
209 | python simpleclone.py | |
210 | rm -r ua |
|
210 | rm -r ua | |
211 |
|
211 | |||
|
212 | cat <<EOF > branchclone.py | |||
|
213 | from mercurial import ui, hg | |||
|
214 | myui = ui.ui() | |||
|
215 | repo = hg.repository(myui, 'a') | |||
|
216 | hg.clone(myui, repo, dest="ua", branch=["stable",]) | |||
|
217 | EOF | |||
|
218 | ||||
|
219 | python branchclone.py | |||
|
220 | rm -r ua | |||
|
221 | ||||
212 | exit 0 |
|
222 | exit 0 |
@@ -314,3 +314,10 b' e8ece76546a6' | |||||
314 | e8ece76546a6 |
|
314 | e8ece76546a6 | |
315 | updating to branch default |
|
315 | updating to branch default | |
316 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
316 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
317 | requesting all changes | |||
|
318 | adding changesets | |||
|
319 | adding manifests | |||
|
320 | adding file changes | |||
|
321 | added 14 changesets with 14 changes to 3 files | |||
|
322 | updating to branch stable | |||
|
323 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
General Comments 0
You need to be logged in to leave comments.
Login now