Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Create a git tag for every changeset imported from perforce.
author
Simon Hausmann
<hausmann@kde.org>
Wed, 31 Jan 2007 22:03:01 +0000
(23:03 +0100)
committer
Simon Hausmann
<hausmann@kde.org>
Wed, 31 Jan 2007 22:03:01 +0000
(23:03 +0100)
Signed-off-by: Simon Hausmann <hausmann@kde.org>
contrib/fast-import/p4-fast-export.py
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
214bed8
)
diff --git
a/contrib/fast-import/p4-fast-export.py
b/contrib/fast-import/p4-fast-export.py
index a1dc54013ef6a52151690d5b1d239395e9c5f2ab..588554d67262238ad0259396e372038c7affd077 100644
(file)
--- a/
contrib/fast-import/p4-fast-export.py
+++ b/
contrib/fast-import/p4-fast-export.py
@@
-98,12
+98,17
@@
def getUserMap():
author = description["user"]
gitStream.write("commit refs/heads/master\n")
author = description["user"]
gitStream.write("commit refs/heads/master\n")
+ committer = ""
if author in users:
if author in users:
-
gitStream.write("committer %s %s %s\n" % (users[author], epoch, tz)
)
+
committer = "%s %s %s" % (users[author], epoch, tz
)
else:
else:
- gitStream.write("committer %s <a@b> %s %s\n" % (author, epoch, tz))
+ committer = "%s <a@b> %s %s" % (author, epoch, tz)
+
+ gitStream.write("committer %s\n" % committer)
+
gitStream.write("data <<EOT\n")
gitStream.write(description["desc"])
gitStream.write("data <<EOT\n")
gitStream.write(description["desc"])
+ gitStream.write("\n[ imported from %s; change %s ]\n" % (prefix, change))
gitStream.write("EOT\n\n")
fnum = 0
gitStream.write("EOT\n\n")
fnum = 0
@@
-137,6
+142,12
@@
def getUserMap():
gitStream.write("\n")
gitStream.write("\n")
+ gitStream.write("tag p4/%s\n" % change)
+ gitStream.write("from refs/heads/master\n");
+ gitStream.write("tagger %s\n" % committer);
+ gitStream.write("data 0\n\n")
+
+
gitStream.close()
gitOutput.close()
gitError.close()
gitStream.close()
gitOutput.close()
gitError.close()