hg2git.py: Create only leightweight tags
authorRocco Rutte <pdmef@gmx.net>
Wed, 14 Mar 2007 08:34:18 +0000 (08:34 +0000)
committerRocco Rutte <pdmef@gmx.net>
Wed, 14 Mar 2007 08:34:18 +0000 (08:34 +0000)
The annotated tag with commit message summary was primarily only for
debugging.

Signed-off-by: Rocco Rutte <pdmef@gmx.net>
hg2git.py

index 37717be..966ee63 100644 (file)
--- 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<start or 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