From: Simon Hausmann Date: Wed, 31 Jan 2007 22:03:01 +0000 (+0100) Subject: Create a git tag for every changeset imported from perforce. X-Git-Tag: v1.5.3-rc0~65^2^2~230 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=71f7c0d0bb20936fc831e49bbfc9355f1e5ca211;p=git.git Create a git tag for every changeset imported from perforce. Signed-off-by: Simon Hausmann --- diff --git a/contrib/fast-import/p4-fast-export.py b/contrib/fast-import/p4-fast-export.py index a1dc54013..588554d67 100644 --- a/contrib/fast-import/p4-fast-export.py +++ b/contrib/fast-import/p4-fast-export.py @@ -98,12 +98,17 @@ for change in changes: author = description["user"] gitStream.write("commit refs/heads/master\n") + committer = "" if author in users: - gitStream.write("committer %s %s %s\n" % (users[author], epoch, tz)) + committer = "%s %s %s" % (users[author], epoch, tz) else: - gitStream.write("committer %s %s %s\n" % (author, epoch, tz)) + committer = "%s %s %s" % (author, epoch, tz) + + gitStream.write("committer %s\n" % committer) + gitStream.write("data <