remote-hg: pass around revision refs
commit883d7be110968c0d319dfa7c595c640e616da9c5
authorFelipe Contreras <felipe.contreras@gmail.com>
Sat, 25 May 2013 02:29:51 +0000 (24 21:29 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 May 2013 15:02:05 +0000 (28 08:02 -0700)
tree7c2cf14b55cfe465243f3c273708475af9d87063
parent19a8cefc44b216db5cf8faf790d197c85db6395e
remote-hg: pass around revision refs

So that when a diverge is detected, we know which ref to report an error
for.

Also, since we are not throwing an exception, return a proper error
code.

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.sh