summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 11d54b8)
raw | patch | inline | side by side (parent: 11d54b8)
author | Junio C Hamano <gitster@pobox.com> | |
Sun, 3 Feb 2008 07:47:22 +0000 (23:47 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 3 Feb 2008 08:25:52 +0000 (00:25 -0800) |
This is the absolute minimum (and reliable) reproduction recipe
to demonstrate that revision range in a history with clock skew
sometimes fails to mark UNINTERESTING commit in topologically
early parts of the history.
The history looks like this:
o---o---o---o
one four
but one has the largest timestamp. "git rev-list four..one"
fails to notice that "one" should not be emitted.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
to demonstrate that revision range in a history with clock skew
sometimes fails to mark UNINTERESTING commit in topologically
early parts of the history.
The history looks like this:
o---o---o---o
one four
but one has the largest timestamp. "git rev-list four..one"
fails to notice that "one" should not be emitted.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6009-rev-list-parent.sh | [new file with mode: 0755] | patch | blob |
diff --git a/t/t6009-rev-list-parent.sh b/t/t6009-rev-list-parent.sh
--- /dev/null
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+test_description='properly cull all ancestors'
+
+. ./test-lib.sh
+
+commit () {
+ test_tick &&
+ echo $1 >file &&
+ git commit -a -m $1 &&
+ git tag $1
+}
+
+test_expect_success setup '
+
+ touch file &&
+ git add file &&
+
+ commit one &&
+
+ test_tick=$(($test_tick - 2400))
+
+ commit two &&
+ commit three &&
+ commit four &&
+
+ git log --pretty=oneline --abbrev-commit
+'
+
+test_expect_failure 'one is ancestor of others and should not be shown' '
+
+ git rev-list one --not four >result &&
+ >expect &&
+ diff -u expect result
+
+'
+
+test_done