Code

Make "--parents" logs also be incremental
authorLinus Torvalds <torvalds@osdl.org>
Sun, 9 Apr 2006 00:05:58 +0000 (17:05 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 9 Apr 2006 06:37:21 +0000 (23:37 -0700)
commit3381c790e5ca04326d26e1dd9ff482961c6e425b
tree818873fa577518a411361646f45aafdd5753715c
parent0ed49a3ed9ab9747f7916c928d50aa0bf4d2c81d
Make "--parents" logs also be incremental

The parent rewriting feature caused us to create the whole history in one
go, and then simplify it later, because of how rewrite_parents() had been
written. However, with a little tweaking, it's perfectly possible to do
even that one incrementally.

Right now, this doesn't really much matter, because every user of
"--parents" will probably generally _also_ use "--topo-order", which will
cause the old non-incremental behaviour anyway. However, I'm hopeful that
we could make even the topological sort incremental, or at least
_partially_ so (for example, make it incremental up to the first merge).

In the meantime, this at least moves things in the right direction, and
removes a strange special case.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
http-push.c
rev-list.c
revision.c
revision.h