comparison tests/test-clone @ 11818:b1ae33b813cb stable

hg.clone: do not ignore branch argument when source is a repo object This is a revert of 4a70178f9bde. The "bug" mentioned in this changeset is unclear: hopefully using a test to cover this usage should prevent any bugs.
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Fri, 02 Jul 2010 15:12:50 +0900
parents be5e86c80628
children
comparison
equal deleted inserted replaced
11779:2b7a75ca6913 11818:b1ae33b813cb
207 EOF 207 EOF
208 208
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