예제 #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
파일: test_hg.py 프로젝트: spacefan/paver
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
파일: test_hg.py 프로젝트: spacefan/paver
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
파일: test_hg.py 프로젝트: spacefan/paver
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
파일: test_hg.py 프로젝트: drewrm/paver
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
파일: test_hg.py 프로젝트: drewrm/paver
def test_simple_update(sh):
    hg.update("bar")
    assert sh.called
    assert sh.call_args[0][0] == "cd bar; hg update -r tip"