Re: [PATCH v3] remote-hg: support for notes
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:58:34
Felipe Contreras [off-list ref] writes:
quoted hunk
Keep track of Mercurial revisions as Git notes under the 'refs/notes/hg' ref, this way, the user can easily see which Mercurial revision correspond 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 <redacted> --- contrib/remote-helpers/git-remote-hg | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-)diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index 307d82c..7f50b40 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remote-helpers/git-remote-hg@@ -23,8 +23,12 @@ import subprocess import urllib import atexit import urlparse, hashlib +import time as ptime # +# If you want to see Mercurial revisions as Git commit notes: +# git config core.notesRef refs/notes/hg +#
Yup. This is better. Will queue.