Exit code 1 after successful push from hg repo to bare git repo.
Created originally on Bitbucket by maxime_r (Maxime R.)
Steps to reproduce the issue :
#!sh
mkdir -p exitcodetest/{hg,git}
cd exitcodetest/git
git init --bare
cd ../hg
hg init
touch foo
hg addremove
hg commit -m "Add foo file"
hg bookmark -f -r default master
hg push --verbose --debug ../git/
echo $?
output :
#!sh
Initialized empty Git repository in /home/maxime/prog/hg_repos/exitcodetest/git/
ajout de foo
pushing to ../git/
exporting hg objects to git
exporting: 0/1 (0.00%)
converting revision 493c23b18d7b06811f996b74e785818e5f72128c
creating and sending data
Unpacking objects: 100% (3/3), done.
1
This is annoying as I'm no longer able to script my deployments because of the non zero exit code.
#!sh
$ hg --version
Mercurial Distributed SCM (version 2.2.2)
$ pip search hg-git
hg-git - push and pull from a Git server using Mercurial
INSTALLED: 0.3.3 (latest)