Issue #57 resolved

Exit code 1 after successful push from hg repo to bare git repo.

Maxime R.
created an issue

Steps to reproduce the issue :

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 :

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.

This is annoying as I'm no longer able to script my deployments because of the non zero exit code.

$ 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)

Comments (4)

  1. David Carr

    Note that if you're going to try out the "next" branch, you'll need to get install Dulwich from source, since the "next" branch currently relies on features from Dulwich 0.8.6.

  2. Log in to comment