revision.c: really honor --first-parent
authorLars Hjemli <hjemli@gmail.com>
Mon, 12 May 2008 15:12:36 +0000 (17:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 May 2008 23:24:51 +0000 (16:24 -0700)
commitad1012ebde8be471098b5d476a98a02c76c8e75a
treea19a3311e4beb6175be0f0e484c083af84ea0fce
parentd9c292e8bbd51c84cb9ecd86cb89b8a1b35a2a82
revision.c: really honor --first-parent

In add_parents_to_list, if any parent of a revision had already been
SEEN, the current code would continue with the next parent, skipping
the test for --first-parent. This patch inverts the test for SEEN so
that the test for --first-parent is always performed.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c