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'
def test_update_simple(sh): hg.update('foo') assert sh.called assert sh.call_args[0][0] == 'hg update -r tip -R foo'
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'
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"
def test_simple_update(sh): hg.update("bar") assert sh.called assert sh.call_args[0][0] == "cd bar; hg update -r tip"