Summary: | git rev-list is bad at detecting ancestors | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | Ivan Zakharyaschev <imz> |
Component: | git-core | Assignee: | placeholder <placeholder> |
Status: | NEW --- | QA Contact: | qa-sisyphus |
Severity: | normal | ||
Priority: | P3 | CC: | glebfm, ldv, placeholder |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
Ivan Zakharyaschev
2019-03-11 03:13:20 MSK
(In reply to comment #0) > $ cd /gears/r/rpm-build.git/ > $ git merge-base --is-ancestor 4.0.4-alt114 4.0.4-alt128 && echo yes > yes > $ git rev-list 4.0.4-alt114 ^4.0.4-alt128 | wc -l > 163 Here is the minimal example (using tags) in this repo: $ git rev-list 4.0.4-alt124 ^4.0.4-alt128 | wc -l 196 $ git rev-list 4.0.4-alt125 ^4.0.4-alt128 | wc -l 0 $ git rev-list 4.0.4-alt124 ^4.0.4-alt127 | wc -l 0 (In reply to comment #1) > (In reply to comment #0) > > $ cd /gears/r/rpm-build.git/ > > $ git merge-base --is-ancestor 4.0.4-alt114 4.0.4-alt128 && echo yes > > yes > > $ git rev-list 4.0.4-alt114 ^4.0.4-alt128 | wc -l > > 163 > > Here is the minimal example (using tags) in this repo: > > $ git rev-list 4.0.4-alt124 ^4.0.4-alt128 | wc -l > 196 > $ git rev-list 4.0.4-alt125 ^4.0.4-alt128 | wc -l > 0 > $ git rev-list 4.0.4-alt124 ^4.0.4-alt127 | wc -l > 0 The commit where this happens: $ git rev-list 6d9d4fed64ef4d6763fffe5d72515fdb2427b417 ^4.0.4-alt128 | wc -l 0 $ git rev-list 6d9d4fed64ef4d6763fffe5d72515fdb2427b417^ ^4.0.4-alt128 | wc -l 196 $ |