git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git CVS Import Questions
@ 2010-07-29 14:17 Samir Faci
  2010-07-30 20:17 ` Jonathan Nieder
  0 siblings, 1 reply; 2+ messages in thread
From: Samir Faci @ 2010-07-29 14:17 UTC (permalink / raw)
  To: git

I have a question about git cvs's import.

I have the following setup in ~/.bashrc:

export CVS_RSH=ssh
export CVSROOT=cvs:/cvs
export CVS_RSH CVSROOT

and I can do a cvs import using git by doing something along these lines:

mkdir bar; git cvsimport -v Foo/Bar   which checks out the history of
module Bar into the current directory (in this case bar)

now... if I do this again in another directory

mkdir bar2; git cvsimport -v Foo/Bar  which repeats the same process
the hashes don't match up.

case in point:
git log --oneline | head -n 1
2fa5b70 ChangeLog:     * Fixing build file syntax error.
git log --oneline | head -n 1
ccef115 ChangeLog:     * Fixing build file syntax error.


Now, correct me if I'm wrong.. but I thought the hashes were generated
based on the content of the diff.  So shouldn't two cvs checkouts
containing the same data
have the same hashes?   ie.  If a git commit is generated based on a
particular diff, then the hash should always be the same, should it
not?

Am I missing something?  I'm just trying to understand the behavior...
-- 
--
Samir Faci
*insert title*
fortune | cowsay -f /usr/share/cows/tux.cow

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Git CVS Import Questions
  2010-07-29 14:17 Git CVS Import Questions Samir Faci
@ 2010-07-30 20:17 ` Jonathan Nieder
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Nieder @ 2010-07-30 20:17 UTC (permalink / raw)
  To: Samir Faci; +Cc: git

Hi Samir,

Samir Faci wrote:

> mkdir bar; git cvsimport -v Foo/Bar   which checks out the history of
> module Bar into the current directory (in this case bar)
> 
> now... if I do this again in another directory
> 
> mkdir bar2; git cvsimport -v Foo/Bar  which repeats the same process
> the hashes don't match up.

Maybe the dates are different?  I would suggest comparing the result of
“git fast-export HEAD” from each.

> Now, correct me if I'm wrong.. but I thought the hashes were generated
> based on the content of the diff.

Close, but not quite.  This might help: http://progit.org/book/ch9-2.html

Have fun,
Jonathan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-30 20:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-29 14:17 Git CVS Import Questions Samir Faci
2010-07-30 20:17 ` Jonathan Nieder

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).