equal
deleted
inserted
replaced
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 |