tests/test-clone.t
changeset 30564 d83ca854fa21
parent 30561 6a672c3b7860
child 31028 636cf3f7620d
equal deleted inserted replaced
30563:cbeb54ec0481 30564:d83ca854fa21
   513 Issue2267: Error in 1.6 hg.py: TypeError: 'NoneType' object is not
   513 Issue2267: Error in 1.6 hg.py: TypeError: 'NoneType' object is not
   514 iterable in addbranchrevs()
   514 iterable in addbranchrevs()
   515 
   515 
   516   $ cat <<EOF > simpleclone.py
   516   $ cat <<EOF > simpleclone.py
   517   > from mercurial import ui, hg
   517   > from mercurial import ui, hg
   518   > myui = ui.ui()
   518   > myui = ui.ui.load()
   519   > repo = hg.repository(myui, 'a')
   519   > repo = hg.repository(myui, 'a')
   520   > hg.clone(myui, {}, repo, dest="ua")
   520   > hg.clone(myui, {}, repo, dest="ua")
   521   > EOF
   521   > EOF
   522 
   522 
   523   $ python simpleclone.py
   523   $ python simpleclone.py
   526 
   526 
   527   $ rm -r ua
   527   $ rm -r ua
   528 
   528 
   529   $ cat <<EOF > branchclone.py
   529   $ cat <<EOF > branchclone.py
   530   > from mercurial import ui, hg, extensions
   530   > from mercurial import ui, hg, extensions
   531   > myui = ui.ui()
   531   > myui = ui.ui.load()
   532   > extensions.loadall(myui)
   532   > extensions.loadall(myui)
   533   > repo = hg.repository(myui, 'a')
   533   > repo = hg.repository(myui, 'a')
   534   > hg.clone(myui, {}, repo, dest="ua", branch=["stable",])
   534   > hg.clone(myui, {}, repo, dest="ua", branch=["stable",])
   535   > EOF
   535   > EOF
   536 
   536