* git-svn commit id.
@ 2008-05-28 14:02 Victor Bogado da Silva Lins
2008-05-28 14:41 ` Andreas Ericsson
0 siblings, 1 reply; 4+ messages in thread
From: Victor Bogado da Silva Lins @ 2008-05-28 14:02 UTC (permalink / raw)
To: git
I have two git-svn repositories here and I noticed that the same commit
have different ids in them. How this came to be, both commits share the
exact same git-svn-id and are the same (as far as I know).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-svn commit id.
2008-05-28 14:02 git-svn commit id Victor Bogado da Silva Lins
@ 2008-05-28 14:41 ` Andreas Ericsson
2008-05-28 14:50 ` Santi Béjar
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Ericsson @ 2008-05-28 14:41 UTC (permalink / raw)
To: Victor Bogado da Silva Lins; +Cc: git
Victor Bogado da Silva Lins wrote:
> I have two git-svn repositories here and I noticed that the same commit
> have different ids in them. How this came to be, both commits share the
> exact same git-svn-id and are the same (as far as I know).
>
If the have exactly the same history leading up to them, source trees
and commit object (including timestamps), the only way they can be any
different is if you've run into a bug in the SHA1 libraries.
If either of the above three are different though, you *will* end up
with different commits.
Try doing "git cat-file commit <sha1-of-one-commit>" and then
"git cat-file commit <sha1-of-other-commit>". If you take a diff
between the two, you'll see how they differ (my guess would be the
timestamps)
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-svn commit id.
2008-05-28 14:41 ` Andreas Ericsson
@ 2008-05-28 14:50 ` Santi Béjar
2008-05-28 16:18 ` Victor Bogado da Silva Lins
0 siblings, 1 reply; 4+ messages in thread
From: Santi Béjar @ 2008-05-28 14:50 UTC (permalink / raw)
To: Andreas Ericsson; +Cc: Victor Bogado da Silva Lins, git
On Wed, May 28, 2008 at 4:41 PM, Andreas Ericsson <ae@op5.se> wrote:
> Victor Bogado da Silva Lins wrote:
>>
>> I have two git-svn repositories here and I noticed that the same commit
>> have different ids in them. How this came to be, both commits share the
>> exact same git-svn-id and are the same (as far as I know).
>
> If the have exactly the same history leading up to them, source trees
> and commit object (including timestamps), the only way they can be any
> different is if you've run into a bug in the SHA1 libraries.
>
> If either of the above three are different though, you *will* end up
> with different commits.
>
> Try doing "git cat-file commit <sha1-of-one-commit>" and then
> "git cat-file commit <sha1-of-other-commit>". If you take a diff
> between the two, you'll see how they differ (my guess would be the
> timestamps)
>
Git-svn uses the same timestamps as in svn, my guess is that one has
more history than the other.
Santi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-svn commit id.
2008-05-28 14:50 ` Santi Béjar
@ 2008-05-28 16:18 ` Victor Bogado da Silva Lins
0 siblings, 0 replies; 4+ messages in thread
From: Victor Bogado da Silva Lins @ 2008-05-28 16:18 UTC (permalink / raw)
To: git
I studied the matter a lit bit and found out that there is an early
commit that is different (in one repository if has lots deletions and in
the other the diff is empty). This maybe an oddity of our svn repository
that uses non-standard layout (atual in place of trunk, for instance).
On Wed, 2008-05-28 at 16:50 +0200, Santi Béjar wrote:
> On Wed, May 28, 2008 at 4:41 PM, Andreas Ericsson <ae@op5.se> wrote:
> > Victor Bogado da Silva Lins wrote:
> >>
> >> I have two git-svn repositories here and I noticed that the same commit
> >> have different ids in them. How this came to be, both commits share the
> >> exact same git-svn-id and are the same (as far as I know).
> >
> > If the have exactly the same history leading up to them, source trees
> > and commit object (including timestamps), the only way they can be any
> > different is if you've run into a bug in the SHA1 libraries.
> >
> > If either of the above three are different though, you *will* end up
> > with different commits.
> >
> > Try doing "git cat-file commit <sha1-of-one-commit>" and then
> > "git cat-file commit <sha1-of-other-commit>". If you take a diff
> > between the two, you'll see how they differ (my guess would be the
> > timestamps)
> >
>
> Git-svn uses the same timestamps as in svn, my guess is that one has
> more history than the other.
>
> Santi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-28 16:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-28 14:02 git-svn commit id Victor Bogado da Silva Lins
2008-05-28 14:41 ` Andreas Ericsson
2008-05-28 14:50 ` Santi Béjar
2008-05-28 16:18 ` Victor Bogado da Silva Lins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).