Ejemplo n.º 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'
Ejemplo n.º 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'
Ejemplo n.º 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'
Ejemplo n.º 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'
Ejemplo n.º 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'
Ejemplo n.º 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'
Ejemplo n.º 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"
Ejemplo n.º 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"