remote-hg: use notes to keep track of Hg revisions
commitc587d655122a287a6796d493d176128f05374156
authorFelipe Contreras <felipe.contreras@gmail.com>
Thu, 29 Aug 2013 22:29:50 +0000 (29 17:29 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 30 Aug 2013 17:37:23 +0000 (30 10:37 -0700)
treeb199907692d0ac7d72dace04c19cf0489fe3b45d
parent641a2b5bee4c759c4dd36b5ad9e7f159aca54611
remote-hg: use notes to keep track of Hg revisions

Keep track of Mercurial revisions as Git notes under the 'refs/notes/hg'
ref.  This way, the user can easily see which Mercurial revision
corresponds to certain Git commit.

Unfortunately, there's no way to efficiently update the notes after
doing an export (push), so they'll have to be updated when importing
(fetching).

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