{"thread":{"id":"39313","subject":"git p4 clone - HEAD + partial history","startedAt":"2015-05-12T19:31:19Z","lastAt":"2015-05-12T20:23:20Z","messageCount":3,"participants":["FusionX86","Luke Diamand"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"261069","messageId":"CAFcBi8_sARUkD2iDeto2CXr1vOm473aOSbj9dCiERTj51ot59A@mail.gmail.com","threadId":"39313","inReplyTo":null,"subject":"git p4 clone - HEAD + partial history","fromName":"FusionX86","fromEmail":"fusionx86@gmail.com","sentAt":"2015-05-12T19:31:19Z","receivedAt":"2015-05-12T19:31:19Z","isPatch":false,"sender":{"key":"fusionx86@gmail.com","avatar":"https://gravatar.com/avatar/90e4d2885c409dfd8c17dae58e16366269ade40c530c37c0835c0a4942a32698?d=mp&s=160"},"body":"Hello,\n\nI'm migrating my company from Perforce to Git. There is history in\nPerforce that goes back to 2006 and I'd like to migrate it with some,\nbut not all of the history. I'm not having luck so far.\n\n>From what I see, a simple git p4 clone grabs HEAD only. Using @all\ngrabs all history and is way too much to migrate. I have tried using\n//depot/folder@2015/01/01,@all when cloning, but it doesn't grab the\ncurrent stuff in HEAD.\n\nIs it possible to grab what is currently in HEAD and the last few\nmonths of history only?\n"},{"id":"261071","messageId":"55525A99.9070702@diamand.org","threadId":"39313","inReplyTo":"CAFcBi8_sARUkD2iDeto2CXr1vOm473aOSbj9dCiERTj51ot59A@mail.gmail.com","subject":"Re: git p4 clone - HEAD + partial history","fromName":"Luke Diamand","fromEmail":"luke@diamand.org","sentAt":"2015-05-12T19:55:05Z","receivedAt":"2015-05-12T19:55:05Z","isPatch":false,"sender":{"key":"luke@diamand.org","avatar":"https://avatars.githubusercontent.com/u/5330967?v=4"},"body":"On 12/05/15 20:31, FusionX86 wrote:\n> Hello,\n>\n> I'm migrating my company from Perforce to Git. There is history in\n> Perforce that goes back to 2006 and I'd like to migrate it with some,\n> but not all of the history. I'm not having luck so far.\n>\n>  From what I see, a simple git p4 clone grabs HEAD only. Using @all\n> grabs all history and is way too much to migrate. I have tried using\n> //depot/folder@2015/01/01,@all when cloning, but it doesn't grab the\n> current stuff in HEAD.\n>\n> Is it possible to grab what is currently in HEAD and the last few\n> months of history only?\n\nWhat I've done in the past is just find a commit that's about the right \ndate, and clone from there.\n\ni.e.\n\n$ git p4 clone //depot/folder/...@12345\n$ git p4 sync\n\nThe usual problem I have after that is that P4 repos can get very large, \nand the process can quite time consuming....\n\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>\n"},{"id":"261075","messageId":"CAFcBi89+FuvB=VF3nCDy7_xrwz=Of_omkCn35MdXBwhy6VckjQ@mail.gmail.com","threadId":"39313","inReplyTo":"55525A99.9070702@diamand.org","subject":"Re: git p4 clone - HEAD + partial history","fromName":"FusionX86","fromEmail":"fusionx86@gmail.com","sentAt":"2015-05-12T20:23:20Z","receivedAt":"2015-05-12T20:23:20Z","isPatch":false,"sender":{"key":"fusionx86@gmail.com","avatar":"https://gravatar.com/avatar/90e4d2885c409dfd8c17dae58e16366269ade40c530c37c0835c0a4942a32698?d=mp&s=160"},"body":"Thanks Luke! I'll give that a shot.\n\nOn Tue, May 12, 2015 at 1:55 PM, Luke Diamand <luke@diamand.org> wrote:\n> On 12/05/15 20:31, FusionX86 wrote:\n>>\n>> Hello,\n>>\n>> I'm migrating my company from Perforce to Git. There is history in\n>> Perforce that goes back to 2006 and I'd like to migrate it with some,\n>> but not all of the history. I'm not having luck so far.\n>>\n>>  From what I see, a simple git p4 clone grabs HEAD only. Using @all\n>> grabs all history and is way too much to migrate. I have tried using\n>> //depot/folder@2015/01/01,@all when cloning, but it doesn't grab the\n>> current stuff in HEAD.\n>>\n>> Is it possible to grab what is currently in HEAD and the last few\n>> months of history only?\n>\n>\n> What I've done in the past is just find a commit that's about the right\n> date, and clone from there.\n>\n> i.e.\n>\n> $ git p4 clone //depot/folder/...@12345\n> $ git p4 sync\n>\n> The usual problem I have after that is that P4 repos can get very large, and\n> the process can quite time consuming....\n>\n>> --\n>> To unsubscribe from this list: send the line \"unsubscribe git\" in\n>> the body of a message to majordomo@vger.kernel.org\n>> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>>\n>\n"}]}