tests/test-basic.t
changeset 36638 159b04de5fb0
parent 36247 48a6b1a22ccf
child 37009 5890e5872f36
equal deleted inserted replaced
36637:e8c361316803 36638:159b04de5fb0
    57 Verify that updating to revision 0 via commands.update() works properly
    57 Verify that updating to revision 0 via commands.update() works properly
    58 
    58 
    59   $ cat <<EOF > update_to_rev0.py
    59   $ cat <<EOF > update_to_rev0.py
    60   > from mercurial import ui, hg, commands
    60   > from mercurial import ui, hg, commands
    61   > myui = ui.ui.load()
    61   > myui = ui.ui.load()
    62   > repo = hg.repository(myui, path='.')
    62   > repo = hg.repository(myui, path=b'.')
    63   > commands.update(myui, repo, rev=0)
    63   > commands.update(myui, repo, rev=0)
    64   > EOF
    64   > EOF
    65   $ hg up null
    65   $ hg up null
    66   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
    66   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
    67   $ $PYTHON ./update_to_rev0.py
    67   $ $PYTHON ./update_to_rev0.py