summaryrefslogtreecommitdiff
path: root/contrib/fast-import/p4-fast-export.py
AgeCommit message (Collapse)AuthorFilesLines
2007-01-31Fix file permissions of p4-fast-export.py to be executable.Libravatar Simon Hausmann1-0/+0
Signed-off-by: Simon Hausmann <hausmann@kde.org>
2007-01-31Create a git tag for every changeset imported from perforce.Libravatar Simon Hausmann1-2/+13
Signed-off-by: Simon Hausmann <hausmann@kde.org>
2007-01-31Fixed displaying import progress by calling flush on stdout.Libravatar Simon Hausmann1-0/+1
Signed-off-by: Simon Hausmann <hausmann@kde.org>
2007-01-31Permit calling p4-fast-export with a depot path that has the typical ... ↵Libravatar Simon Hausmann1-0/+3
wildcard at the end. Signed-off-by: Simon Hausmann <hausmann@kde.org>
2007-01-31Avoid calling fstat for every imported file (slow!) and instead read the ↵Libravatar Simon Hausmann1-6/+4
file data first into the python process and use the length of the bytes read for the size field of git fast-import. Signed-off-by: Simon Hausmann <hausmann@kde.org>
2007-01-31Ported the remaining functions that parsed p4 shell output over to the p4 ↵Libravatar Simon Hausmann1-58/+31
python interface. Signed-off-by: Simon Hausmann <hausmann@kde.org>
2007-01-31Instead of parsing the output of "p4 users" use the python objects of "p4 -G ↵Libravatar Simon Hausmann1-14/+14
users". Signed-off-by: Simon Hausmann <hausmann@kde.org>
2007-01-31Minor code cleanups and ported some p4 interfacing code over to the p4 ↵Libravatar Simon Hausmann1-39/+14
python mode. Signed-off-by: Simon Hausmann <hausmann@kde.org>
2007-01-31Changed the import mechanism to write to git fast-import through a pipe ↵Libravatar Simon Hausmann1-25/+27
instead of having p4-fast-export write to stdout and let the caller connect it to git fast-import. Signed-off-by: Simon Hausmann <hausmann@kde.org>
2007-01-31Removed unused p4cat function and added helper function for the perforce ↵Libravatar Simon Hausmann1-3/+13
python interface (p4Cmd). Signed-off-by: Simon Hausmann <hausmann@kde.org>
2007-01-31Speed up the import of individual files from Perforce into git by passing ↵Libravatar Simon Hausmann1-11/+20
the output of "p4 print" directly to git fast-import. Also try to set the mode of the file in git correctly based on file type heuristics. Signed-off-by: Simon Hausmann <hausmann@kde.org>
2007-01-31Some fixes to the timezone conversion between the date of a perforce change ↵Libravatar Simon Hausmann1-3/+5
and the git commit. Signed-off-by: Simon Hausmann <hausmann@kde.org>
2007-01-31Implemented basic support for converting the date of the perforce change to ↵Libravatar Simon Hausmann1-11/+15
the git format. The timezone isn't correctly set up yet though. Signed-off-by: Simon Hausmann <shausman@trolltech.com>
2007-01-31Slightly improved help usage output and made specifying the trailing slash ↵Libravatar Simon Hausmann1-2/+7
for the depot path optional. Signed-off-by: Simon Hausmann <shausman@trolltech.com>
2007-01-31Added basic support for specifying the depot path to import from as well as ↵Libravatar Simon Hausmann1-3/+15
the range of perforce changes. Signed-off-by: Simon Hausmann <shausman@trolltech.com>
2007-01-31Initial import of a python script to import changesets from Perforce into git.Libravatar Simon Hausmann1-0/+150
Signed-off-by: Simon Hausmann <shausman@trolltech.com>