git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Re-done kernel archive - real one?
@ 2005-04-16 23:01 Linus Torvalds
  2005-04-17 15:24 ` Russell King
                   ` (4 more replies)
  0 siblings, 5 replies; 60+ messages in thread
From: Linus Torvalds @ 2005-04-16 23:01 UTC (permalink / raw
  To: Git Mailing List; +Cc: Peter Anvin


Ok, nobody really objected to the notion of leaving the kernel history
behind for now, and in fact most people seemed to basically agree. So with
that decided, the old kernel testing tree was actually perfectly ok,
except it had been build up with the old-style commit date handling, which
made me not want to use it as a base for any real work.

So I re-created the dang thing (hey, it takes just a few minutes), and
pushed it out, and there's now an archive on kernel.org in my public
"personal" directory called "linux-2.6.git". I'll continue the tradition
of naming git-archive directories as "*.git", since that really ends up
being the ".git" directory for the checked-out thing.

I'm not going to announce it on linux-kernel yet, because I don't think
it's useful to anybody but a git person anyway. Besides, I don't actually
know how happy the kernel.org people are about this distribution method
and whether it ends up being a horrible disaster for the mirroring setup. 

Peter made some noises about /pub/scm, which makes sense, and would be a
better place than my public tree. Apparently there are other places that
are willing and able to host things too, so we'll see.

NOTE! The roughly 10x expansion of archive size goind from BK to git ends
up in a similar 10x bandwidth expansion, in addition to just the overhead
of reading tons of directory entries and comparing them (which is what
both a wget and rsync thing ends up doing). I'm sure we can bring that
down with smarter synchronization tools, but I also suspect that's some
way away.

So is real common usage, though, so maybe it's not that bad at all. Who 
knows. We haven't hit a single real snag so far (except it took several 
days longer than I expected, but hey, I expect lots of things ;), and I'm 
sure real usage will show lots of them.

Similarly, we don't really have real merging, which makes tracking harder, 
but I suspect actually having a tree out there will make people more 
motivated and have more of a test-case. I'm feeling good enough about the 
plumbing that I think I solved the "hard" part of it, and now it's just 
the boring 95% left - scripting around it.

I think that with the new merge model, the easiest thing to do is to just 
download all new objects, and then download the HEAD file under a new 
name.

Ie we have two phases to the merge: first get the objects, with something
like

	repo=kernel.org:/pub/kernel/people/torvalds/linux-2.6.git
	rsync --ignore-existing -acv $(repo)/ .git/

which will _not_ download the new HEAD file (since you already have one of 
your own), and then when you actually decide to merge you do

	rsync -acv $(repo)/HEAD .git/MERGE_WITH

and now you can look at your old HEAD, and the MERGE_WITH thing, look up 
the parents, and then do

	read-tree -m <parent-tree> <head-tree> <merge-with-tree>
	write-tree
	commit-tree <result-tree> -p <head-tree> -p <merge-with-tree>

(which should actually _work_, assuming that the merge had no file 
conflicts).

This seems to be a sane way to do merges, and if the scripting starts from 
there and then becomes smarter...

		Linus

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

end of thread, other threads:[~2005-04-19  7:24 UTC | newest]

Thread overview: 60+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-16 23:01 Re-done kernel archive - real one? Linus Torvalds
2005-04-17 15:24 ` Russell King
2005-04-17 16:28   ` Petr Baudis
2005-04-17 16:36   ` Linus Torvalds
2005-04-17 18:57     ` Russell King
2005-04-17 19:33       ` Linus Torvalds
2005-04-17 19:45         ` Linus Torvalds
2005-04-17 19:51         ` Russell King
2005-04-17 20:08           ` Linus Torvalds
2005-04-17 20:11             ` Russell King
2005-04-17 20:26               ` Linus Torvalds
2005-04-17 20:42                 ` Russell King
2005-04-18 22:16       ` Russell King
2005-04-18 22:33         ` Petr Baudis
2005-04-18 23:29         ` Linus Torvalds
2005-04-18 23:53         ` Petr Baudis
2005-04-17 16:05 ` Russell King
2005-04-17 16:44   ` Linus Torvalds
2005-04-17 18:13     ` David A. Wheeler
2005-04-17 18:14       ` Petr Baudis
2005-04-17 18:20       ` Russell King
2005-04-17 18:44         ` David A. Wheeler
2005-04-18 11:15         ` Martin Schlemmer
2005-04-17 20:21 ` H. Peter Anvin
2005-04-17 21:50 ` Jochen Roemling
2005-04-17 22:09   ` Randy.Dunlap
2005-04-17 22:30     ` Petr Baudis
2005-04-17 21:52 ` David Woodhouse
2005-04-17 22:17   ` Linus Torvalds
2005-04-17 22:19     ` Russell King
2005-04-17 22:51       ` Russell King
2005-04-17 23:24         ` Linus Torvalds
2005-04-18  9:23           ` Russell King
2005-04-18 11:14             ` Martin Schlemmer
2005-04-18 11:15             ` Petr Baudis
2005-04-18 15:23             ` Linus Torvalds
2005-04-18 17:05               ` Linus Torvalds
2005-04-18 18:07                 ` Petr Baudis
2005-04-18 21:53               ` Russell King
2005-04-18 22:01                 ` Linus Torvalds
2005-04-18 22:48                 ` Petr Baudis
2005-04-18 22:59                   ` Russell King
2005-04-18 23:09                     ` Petr Baudis
2005-04-19  7:27                       ` Russell King
2005-04-18 23:31                   ` Linus Torvalds
2005-04-18 21:33             ` Russell King
2005-04-18 21:56               ` Linus Torvalds
2005-04-18 14:22           ` Petr Baudis
2005-04-18 15:04           ` Greg KH
2005-04-18 15:25             ` Randy.Dunlap
2005-04-18 15:42             ` Linus Torvalds
2005-04-18 22:05               ` Greg KH
2005-04-18 22:14                 ` Greg KH
2005-04-18 23:16                   ` Linus Torvalds
2005-04-18 23:26                     ` Greg KH
2005-04-18 23:10                 ` Linus Torvalds
2005-04-17 22:20     ` H. Peter Anvin
2005-04-17 22:22     ` randy_dunlap
2005-04-17 23:21       ` David Woodhouse
2005-04-18  1:33         ` randy_dunlap

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