remote-hg: add test for diverged push
commit1a810864e87b78c08295acca124eb66b8cf2a973
authorFelipe Contreras <felipe.contreras@gmail.com>
Sat, 25 May 2013 02:29:41 +0000 (24 21:29 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 May 2013 15:00:13 +0000 (28 08:00 -0700)
tree8d43a148b421d64f69e647f5ff3489ca41d3e958
parente14432f798d6575b5c8269982758c0916a5f13c5
remote-hg: add test for diverged push

Neither mercurial nor git allows pushing to a remote when it's a
non-fast-forward push. We should be able to detect these errors and
report them properly, as opposed to throwing an exception
stack-trace.

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