comparison 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
comparison
equal deleted inserted replaced
11543:0a2762d83c53 11544:be5e86c80628
197 echo % "same revision checked out in repo a and ua" 197 echo % "same revision checked out in repo a and ua"
198 hg -R a parents --template "{node|short}\n" 198 hg -R a parents --template "{node|short}\n"
199 hg -R ua parents --template "{node|short}\n" 199 hg -R ua parents --template "{node|short}\n"
200 rm -r ua 200 rm -r ua
201 201
202 cat <<EOF > simpleclone.py
203 from mercurial import ui, hg
204 myui = ui.ui()
205 repo = hg.repository(myui, 'a')
206 hg.clone(myui, repo, dest="ua")
207 EOF
208
209 python simpleclone.py
210 rm -r ua
211
202 exit 0 212 exit 0