I'm trying to use hg push
to a git repository, but it silently fails. I found a single post on the mailing list and a registered hg-git issue, but both are about half a year old without much activity. So I started to think I misunderstand/misconfigure something.
My ~/.hgrc
contains
[extensions]
hgext.bookmarks =
hgext.git =
#hggit = /path/to/hg-git-0.3.1/hggit
[bookmarks]
track.current = True
This snippet reproduces the problem:
mkdir /tmp/Git
cd /tmp/Git
git init
echo 'something' > myfile
git add .
git commit -m 'Started'
cd ..
hg clone /tmp/Git /tmp/Hg
cd /tmp/Hg
echo 'another thing' >> myfile
hg ci -m 'Working'
hg log
# Two items listed
hg push
cd ../Git
git log
# Only one item listed, but two expected
I tried both hg-git 0.2.6-2
shipped with Ubuntu 11.10, and the latest tagged version, 0.3.1
. My mercurial is version 1.9.1
I even tried two proposed workarounds, hg update master
before commiting, and hg bookmark -f master
after commiting, but both gave an error.
UPDATE:
I created a new issue for this