Debian Codegraph @

debian/tests/mercurial-git

raw
1 #!/bin/sh
2 #
3 # Basic test to see if the mercurial-git extension still works.
4
5 set -e
6
7 # Setup a git repository with some content
8 git init --bare git_server
9 git clone git_server git_clone 2>&1
10 cd git_clone
11 git config user.name Babar
12 git config user.email [email protected]
13 echo a >a
14 git add a
15 git commit -m a
16 git push origin master 2>&1
17 cd ..
18
19 # Now try to clone it with mercurial-git
20 hg --config extensions.git= clone git_server hg_clone
21
22 # Do some changes and push them to the git server
23 cd hg_clone
24 echo b >>a
25 hg commit -u "Babar <[email protected]>" -m "more content to a"
26 exec hg --config extensions.git= push