Beispiel #1
0
def test_simple_clone(sh):
    hg.clone("ssh://foo/foo", "bar")
    assert sh.called
    assert sh.call_args[0][0] == "hg clone ssh://foo/foo bar"
Beispiel #2
0
def test_simple_clone_to_rev(sh):
    hg.clone('ssh://foo/bar', 'baz', 'bam')
    assert sh.called
    assert sh.call_args[0][0] == 'hg clone -r bam ssh://foo/bar baz'
Beispiel #3
0
def test_simple_clone_to_rev(sh):
    hg.clone('ssh://foo/bar', 'baz', 'bam')
    assert sh.called
    assert sh.call_args[0][0] == 'hg clone -r bam ssh://foo/bar baz'
Beispiel #4
0
def test_simple_clone(sh):
    hg.clone("ssh://foo/foo", "bar")
    assert sh.called
    assert sh.call_args[0][0] == "hg clone ssh://foo/foo bar"
Beispiel #5
0
def test_clone(sh):
    hg.clone("https://foo", "bar")
    assert sh.called
    assert sh.call_args[0][0] == "hg clone https://foo bar"