remote-hg: always point HEAD to master
commit91347ea3e17b853155f9cab31f0c2a28143284ed
authorFelipe Contreras <felipe.contreras@gmail.com>
Sat, 25 May 2013 02:29:34 +0000 (24 21:29 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 May 2013 14:59:30 +0000 (28 07:59 -0700)
treeb75fa646c531d5224fb204ab90c0d728aa648b09
parent63f54cf216944e8cadd7c762e624b0a7b1d0c3a2
remote-hg: always point HEAD to master

Mercurial always checks out the 'default' branch, so there's no point in
complicating our lives trying to do something fancier, which causes
different behavior depending on whether the repository is local or
remote.

So let's always use 'default' (which we translate to 'master'), unless
we are in hg-git mode, which expects us to use the 'master' bookmark
instead.

Also, update the tests that used to check for different checkout
behaviors to simply check that the refs are there, remove unnecessary
ones, and fix the ones that expect something different.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/git-remote-hg
contrib/remote-helpers/test-hg-bidi.sh
contrib/remote-helpers/test-hg-hg-git.sh
contrib/remote-helpers/test-hg.sh