comparison tests/test-init @ 3034:3acb76f0124d

clone: simplifying dest repo creation since creating a repo raises an exception if the repo already exists, there's no need to try to create one. add some test for repo creation when the destination exists
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 02 Sep 2006 23:26:10 +0200
parents e4b5e48052c6
children 8ae88ed2a3b6
comparison
equal deleted inserted replaced
3033:adf7f3421c55 3034:3acb76f0124d
25 echo "# creating 'local'" 25 echo "# creating 'local'"
26 hg init local 26 hg init local
27 echo this > local/foo 27 echo this > local/foo
28 hg ci --cwd local -A -m "init" -d "1000000 0" 28 hg ci --cwd local -A -m "init" -d "1000000 0"
29 29
30 echo "#test failure"
31 hg init local
32
30 echo "# init+push to remote2" 33 echo "# init+push to remote2"
31 hg init -e ./dummyssh ssh://user@dummy/remote2 34 hg init -e ./dummyssh ssh://user@dummy/remote2
32 hg incoming -R remote2 local 35 hg incoming -R remote2 local
33 hg push -R local -e ./dummyssh ssh://user@dummy/remote2 36 hg push -R local -e ./dummyssh ssh://user@dummy/remote2
34 37
35 echo "# clone to remote1" 38 echo "# clone to remote1"
39 hg clone -e ./dummyssh local ssh://user@dummy/remote1
40
41 echo "# init to existing repo"
42 hg init -e ./dummyssh ssh://user@dummy/remote1
43
44 echo "# clone to existing repo"
36 hg clone -e ./dummyssh local ssh://user@dummy/remote1 45 hg clone -e ./dummyssh local ssh://user@dummy/remote1
37 46
38 echo "# output of dummyssh" 47 echo "# output of dummyssh"
39 cat dummylog 48 cat dummylog
40 49