##// END OF EJS Templates
Merge with stable
Martin Geisler -
r11823:f1c2de22 merge default
parent child Browse files
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
@@ -431,3 +431,13 b' Testing issue2267:'
431
431
432 $ rm -r ua
432 $ rm -r ua
433
433
434 cat <<EOF > branchclone.py
435 from mercurial import ui, hg
436 myui = ui.ui()
437 repo = hg.repository(myui, 'a')
438 hg.clone(myui, repo, dest="ua", branch=["stable",])
439 EOF
440
441 python branchclone.py
442 rm -r ua
443
General Comments 0
You need to be logged in to leave comments. Login now