From af2237607c130c1a1744e7efd0ab1876b257bcbd Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Wed, 14 Mar 2007 08:34:18 +0000 Subject: [PATCH] hg2git.py: Create only leightweight tags The annotated tag with commit message summary was primarily only for debugging. Signed-off-by: Rocco Rutte --- hg2git.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/hg2git.py b/hg2git.py index 37717be..966ee63 100644 --- a/hg2git.py +++ b/hg2git.py @@ -263,20 +263,14 @@ def export_tags(ui,repo,marks_cache,start,end,count,authors): # ignore those tags not in our import range if rev=end: continue - ref=marks_cache.get(str(rev),None) + ref=get_parent_mark(rev,marks_cache) if ref==None: sys.stderr.write('Failed to find reference for creating tag' ' %s at r%d\n' % (tag,rev)) continue - (_,user,(time,timezone),_,desc,branch,_)=get_changeset(ui,repo,rev,authors) sys.stderr.write('Exporting tag [%s] at [hg r%d] [git %s]\n' % (tag,rev,ref)) - wr('tag %s' % tag) + wr('reset refs/tags/%s' % tag) wr('from %s' % ref) - wr('tagger %s %d %s' % (user,time,timezone)) - msg='hg2git created tag %s for hg revision %d on branch %s on (summary):\n\t%s' % (tag, - rev,branch,desc.split('\n')[0]) - wr('data %d' % (len(msg)+1)) - wr(msg) wr() count=checkpoint(count) return count -- 2.11.4.GIT