Пример #1
0
def test_update_to_rev_and_clean(sh):
    hg.update('foo', 'bar', True)
    assert sh.called
    assert sh.call_args[0][0] == 'hg update -r bar -R foo --clean'
Пример #2
0
def test_update_simple(sh):
    hg.update('foo')
    assert sh.called
    assert sh.call_args[0][0] == 'hg update -r tip -R foo'
Пример #3
0
def test_update_to_rev(sh):
    hg.update('foo', 'bar')
    assert sh.called
    assert sh.call_args[0][0] == 'hg update -r bar -R foo'
Пример #4
0
def test_update_to_rev_and_clean(sh):
    hg.update('foo', 'bar', True)
    assert sh.called
    assert sh.call_args[0][0] == 'hg update -r bar -R foo --clean'
Пример #5
0
def test_update_to_rev(sh):
    hg.update('foo', 'bar')
    assert sh.called
    assert sh.call_args[0][0] == 'hg update -r bar -R foo'
Пример #6
0
def test_update_simple(sh):
    hg.update('foo')
    assert sh.called
    assert sh.call_args[0][0] == 'hg update -r tip -R foo'
Пример #7
0
def test_update_with_revision(sh):
    hg.update("bar", "120")
    assert sh.called
    assert sh.call_args[0][0] == "cd bar; hg update -r 120"
Пример #8
0
def test_simple_update(sh):
    hg.update("bar")
    assert sh.called
    assert sh.call_args[0][0] == "cd bar; hg update -r tip"