diff tests/test-clone @ 11544:be5e86c80628 stable

hg.clone: fix branch value when passing a repo object (issue2267) Since 3d6915f5a2bb the branch argument for addbranchrevs should be a tuple: (hashbranch, branches) The right empty value therefore is (None, []) instead of None.
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Fri, 02 Jul 2010 15:05:21 +0900
parents 07e425d63dbd
children b1ae33b813cb
line wrap: on
line diff
--- a/tests/test-clone	Tue Jul 06 15:05:03 2010 +0900
+++ b/tests/test-clone	Fri Jul 02 15:05:21 2010 +0900
@@ -199,4 +199,14 @@
 hg -R ua parents --template "{node|short}\n"
 rm -r ua
 
+cat <<EOF > simpleclone.py
+from mercurial import ui, hg
+myui = ui.ui()
+repo = hg.repository(myui, 'a')
+hg.clone(myui, repo, dest="ua")
+EOF
+
+python simpleclone.py
+rm -r ua
+
 exit 0