git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Best way to merge two repos with same content, different history
@ 2009-06-05 16:30 Kelly F. Hickel
  2009-06-05 16:53 ` Rostislav Svoboda
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Kelly F. Hickel @ 2009-06-05 16:30 UTC (permalink / raw)
  To: git

Hi all,
	We're converting out of CVS after 10 years... The cvs2git
conversion takes around 4-5 days, and there doesn't seem to be any way
to speed that up.  So, our current plan is to take the tip of the
branches that we need for the next week, and import each of those
branches into its own clean git repo (top-skim).  Then we'll work out of
those repos while the conversion is in process (presumably creating
branches in those repos as needed).  Once the conversion is finished,
we'll need to get all the work done in the top-skimmed repos merged into
the converted repo so that we end up with little to no developer down
time, and all of our history, pre and post conversion in one repo.
	I'm testing all of this in advance, of course, and the tricky
part at the moment is how to "stitch" the commits from the top-skim
repos back onto the converted repo when the conversion is done.  The
file content of the initial commit for the skimmed repo is identical to
the last commit for the respective branch in the converted repo, but the
SHA1s are different, presumably because the history of the content is
different.

	Stated another way, I have two repositories, "new" and "old",
where the files in the initial commit on branch "B1" in "new" have
exactly the same content as the last commit on branch "B1" in "old".
There also exist various branches in "new" based on "B1".  I'd like to
merge all the commits from "new" into "old", but the SHA1s are
different, presumably because the history leading up to those points are
different.

	Other than using manually format-patch on every branch in new,
then applying the patches (presumably with regular old patch, since the
ancestor commit IDs won't match), is there any "good" way to merge "new"
into "old"?

Thanks,	


--

Kelly F. Hickel
Senior Product Architect
MQSoftware, Inc.
952-345-8677 Office
952-345-8721 Fax
kfh@mqsoftware.com
www.mqsoftware.com
Certified IBM SOA Specialty
Your Full Service Provider for IBM WebSphere
Learn more at www.mqsoftware.com 

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

end of thread, other threads:[~2009-06-19  9:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-05 16:30 Best way to merge two repos with same content, different history Kelly F. Hickel
2009-06-05 16:53 ` Rostislav Svoboda
2009-06-05 17:10   ` Kelly F. Hickel
2009-06-05 17:19     ` Rostislav Svoboda
2009-06-05 18:46     ` Robin H. Johnson
2009-06-05 19:06       ` Best way to merge two repos with same content, differenthistory Kelly F. Hickel
2009-06-05 20:02         ` Robin H. Johnson
2009-06-05 20:08           ` Kelly F. Hickel
2009-06-19  9:52           ` Michael Haggerty
2009-06-05 17:01 ` Best way to merge two repos with same content, different history Avery Pennarun
2009-06-05 17:11   ` Kelly F. Hickel
2009-06-05 17:15 ` Markus Heidelberg

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).