diff 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
line wrap: on
line diff
--- a/tests/test-clone	Wed Aug 11 12:29:20 2010 +0200
+++ b/tests/test-clone	Fri Jul 02 15:12:50 2010 +0900
@@ -209,4 +209,14 @@
 python simpleclone.py
 rm -r ua
 
+cat <<EOF > branchclone.py
+from mercurial import ui, hg
+myui = ui.ui()
+repo = hg.repository(myui, 'a')
+hg.clone(myui, repo, dest="ua", branch=["stable",])
+EOF
+
+python branchclone.py
+rm -r ua
+
 exit 0