remote-hg: add test for diverged push
authorFelipe Contreras <redacted>
Sat, 25 May 2013 02:29:41 +0000 (21:29 -0500)
committerJunio C Hamano <redacted>
Tue, 28 May 2013 15:00:13 +0000 (08:00 -0700)
commit1a810864e87b78c08295acca124eb66b8cf2a973
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/remote-helpers/test-hg.sh
git clone https://git.99rst.org/PROJECT