{"thread":{"id":"13702","subject":"git-svn commit id.","startedAt":"2008-05-28T14:02:00Z","lastAt":"2008-05-28T16:18:45Z","messageCount":4,"participants":["Victor Bogado da Silva Lins","Andreas Ericsson","Santi Béjar"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"77932","messageId":"1211983320.15736.11.camel@omicron.ep.petrobras.com.br","threadId":"13702","inReplyTo":null,"subject":"git-svn commit id.","fromName":"Victor Bogado da Silva Lins","fromEmail":"victor@bogado.net","sentAt":"2008-05-28T14:02:00Z","receivedAt":"2008-05-28T14:02:00Z","isPatch":false,"sender":{"key":"victor@bogado.net","avatar":"https://gravatar.com/avatar/4ad1d046d4c1a5673a65aac199e2113f4e2d2ffe88d095cb3e17c1f20126cfac?d=mp&s=160"},"body":"I have two git-svn repositories here and I noticed that the same commit\nhave different ids in them. How this came to be, both commits share the\nexact same git-svn-id and are the same (as far as I know). \n"},{"id":"77936","messageId":"483D6F10.5000403@op5.se","threadId":"13702","inReplyTo":"1211983320.15736.11.camel@omicron.ep.petrobras.com.br","subject":"Re: git-svn commit id.","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2008-05-28T14:41:20Z","receivedAt":"2008-05-28T14:41:20Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Victor Bogado da Silva Lins wrote:\n> I have two git-svn repositories here and I noticed that the same commit\n> have different ids in them. How this came to be, both commits share the\n> exact same git-svn-id and are the same (as far as I know). \n> \n\nIf the have exactly the same history leading up to them, source trees\nand commit object (including timestamps), the only way they can be any\ndifferent is if you've run into a bug in the SHA1 libraries.\n\nIf either of the above three are different though, you *will* end up\nwith different commits.\n\nTry doing \"git cat-file commit <sha1-of-one-commit>\" and then\n\"git cat-file commit <sha1-of-other-commit>\". If you take a diff\nbetween the two, you'll see how they differ (my guess would be the\ntimestamps)\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"},{"id":"77938","messageId":"8aa486160805280750q5a214961re21ed1dc731cf181@mail.gmail.com","threadId":"13702","inReplyTo":"483D6F10.5000403@op5.se","subject":"Re: git-svn commit id.","fromName":"Santi Béjar","fromEmail":"sbejar@gmail.com","sentAt":"2008-05-28T14:50:54Z","receivedAt":"2008-05-28T14:50:54Z","isPatch":false,"sender":{"key":"santi@agolina.net","avatar":null},"body":"On Wed, May 28, 2008 at 4:41 PM, Andreas Ericsson <ae@op5.se> wrote:\n> Victor Bogado da Silva Lins wrote:\n>>\n>> I have two git-svn repositories here and I noticed that the same commit\n>> have different ids in them. How this came to be, both commits share the\n>> exact same git-svn-id and are the same (as far as I know).\n>\n> If the have exactly the same history leading up to them, source trees\n> and commit object (including timestamps), the only way they can be any\n> different is if you've run into a bug in the SHA1 libraries.\n>\n> If either of the above three are different though, you *will* end up\n> with different commits.\n>\n> Try doing \"git cat-file commit <sha1-of-one-commit>\" and then\n> \"git cat-file commit <sha1-of-other-commit>\". If you take a diff\n> between the two, you'll see how they differ (my guess would be the\n> timestamps)\n>\n\nGit-svn uses the same timestamps as in svn, my guess is that one has\nmore history than the other.\n\nSanti\n"},{"id":"77947","messageId":"1211991525.15736.18.camel@omicron.ep.petrobras.com.br","threadId":"13702","inReplyTo":"8aa486160805280750q5a214961re21ed1dc731cf181@mail.gmail.com","subject":"Re: git-svn commit id.","fromName":"Victor Bogado da Silva Lins","fromEmail":"victor@bogado.net","sentAt":"2008-05-28T16:18:45Z","receivedAt":"2008-05-28T16:18:45Z","isPatch":false,"sender":{"key":"victor@bogado.net","avatar":"https://gravatar.com/avatar/4ad1d046d4c1a5673a65aac199e2113f4e2d2ffe88d095cb3e17c1f20126cfac?d=mp&s=160"},"body":"I studied the matter a lit bit and found out that there is an early\ncommit that is different (in one repository if has lots deletions and in\nthe other the diff is empty). This maybe an oddity of our svn repository\nthat uses non-standard layout (atual in place of trunk, for instance). \n\nOn Wed, 2008-05-28 at 16:50 +0200, Santi Béjar wrote:\n> On Wed, May 28, 2008 at 4:41 PM, Andreas Ericsson <ae@op5.se> wrote:\n> > Victor Bogado da Silva Lins wrote:\n> >>\n> >> I have two git-svn repositories here and I noticed that the same commit\n> >> have different ids in them. How this came to be, both commits share the\n> >> exact same git-svn-id and are the same (as far as I know).\n> >\n> > If the have exactly the same history leading up to them, source trees\n> > and commit object (including timestamps), the only way they can be any\n> > different is if you've run into a bug in the SHA1 libraries.\n> >\n> > If either of the above three are different though, you *will* end up\n> > with different commits.\n> >\n> > Try doing \"git cat-file commit <sha1-of-one-commit>\" and then\n> > \"git cat-file commit <sha1-of-other-commit>\". If you take a diff\n> > between the two, you'll see how they differ (my guess would be the\n> > timestamps)\n> >\n> \n> Git-svn uses the same timestamps as in svn, my guess is that one has\n> more history than the other.\n> \n> Santi\n"}]}