Signed-off-by: Yan, Zheng <zyan@redhat.com>
comparator = 1;
else if (ancestors[0].version < other.ancestors[0].version)
comparator = -1;
- if (ancestors[0].dirino != other.ancestors[0].dirino)
+ if (ancestors[0].dirino != other.ancestors[0].dirino ||
+ ancestors[0].dname != other.ancestors[0].dname)
*divergent = true;
for (int i = 1; i < min_size; ++i) {
if (*divergent) {
*/
break;
}
- if (ancestors[i].dirino != other.ancestors[i].dirino) {
+ if (ancestors[i].dirino != other.ancestors[i].dirino ||
+ ancestors[i].dname != other.ancestors[i].dname) {
*equivalent = false;
if (ancestors[i-1].version < other.ancestors[i-1].version) {
if (comparator > 0)