forked from ermshiperete/git-p4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When syncing, it is often desirable to sync mid point. I was unable
to git-p4 clone my company's massive perforce db because it kept timing out and crashing the script. so i wanted to initially git-p4 clone a small amount of changes git p4 clone //depot/path@1,100 . then incrementally add more to it git p4 sync //depot/path@100,200 but git fast-import kept crashing. that's when i found out you could set the from field to allow it to continue where you left off. this change adds a new parameter, --restartImport, that allows you to incrementally sync changes midstream. http://www.kerneltrap.com/mailarchive/git/2009/7/7/6203 http://www.kerneltrap.com/mailarchive/git/2009/7/7/6202
- Loading branch information
Andrew Cates
committed
May 5, 2011
1 parent
deb0478
commit da1851d
Showing
1 changed file
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
da1851d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a patch - based on your changes here - that applies cleanly to the latest git-p4 (the one that comes with git 2.11.0 - it also applies cleanly to the version that ships with Xcode...git 2.9.3)
git-p4.txt
Nice work - this saved me a ton of time in doing an import!
da1851d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When doing this, however, I do end up getting (in your example) changelist #100 entered twice. The first time is the real one, the second one is empty. This is easily cleaned up by removing the empty commits by running: