"bzr log --exclude-common-ancestry -rX..Y" inconsistent

Bug #575631 reported by GuilhemBichot
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Low
Vincent Ladeuil

Bug Description

I have bzr.dev revno 5204.
I'm testing "bzr log -rX..Y --exclude-common-ancestry".
* With MySQL branches, the output doesn't contain X: I used
https://code.launchpad.net/~mysql/mysql-server/mysql-6.0-codebase at revid <email address hidden>
and then
bzr log -r tag:mysql-6.0.9..tag:mysql-6.0.10 --exclude-common-ancestry ,
and the revision with tag mysql-6.0.9 is not shown.
* In another test, the output contains X:
bzr init br1
cd br1
touch foo
bzr add .
bzr commit -m1
echo lkj > foo
bzr commit -m2
echo l > foo
bzr commit -m3
echo lmlll > foo
bzr commit -m4
bzr log -r3..4 --exclude-common-ancestry # shows 3 and 4
* I'm surprised that sometimes X is in the output and sometimes not.
The definition of this option, per "bzr help log", is "Display only the revisions that are not part of both ancestries", to me 3 is part of the ancestry of 3, and of 4, so should not be displaid.

Tags: easy mysql

Related branches

tags: added: mysql
Changed in bzr:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
GuilhemBichot (guilhem-bichot) wrote :

Hello. I don't understand the "Wishlist" state here. Is it really just my wish that it would always exclude or always include X, in -rX..Y? Isn't it rather a little bug that it sometimes excludes and other times includes X?

Revision history for this message
Vincent Ladeuil (vila) wrote :

The --exclude-common-ancestry implementation is obviously incomplete.
The consequences are not dramatic but this is definitely a bug.
Marking as Low instead.

Changed in bzr:
importance: Wishlist → Low
tags: added: easy
Revision history for this message
Vincent Ladeuil (vila) wrote :

Just to confirm this happen only if X and Y are mainline revnos, I'll submit a fix asap.

Changed in bzr:
assignee: nobody → Vincent Ladeuil (vila)
status: Confirmed → In Progress
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.2b4
status: In Progress → New
status: New → Fix Released
Revision history for this message
GuilhemBichot (guilhem-bichot) wrote :

Thanks a lot Vincent, I tested that this fixes my testcase and does not degrade the case of "bzr log -r tag:mysql-6.0.9..tag:mysql-6.0.10 --exclude-common-ancestry".

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.