bzr status shows pending merges with incorrect indentation

Bug #199655 reported by Wesley J. Landaker
4
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned

Bug Description

bzr status shows pending merges with incorrect indentation if there is more than one pending merge. This is confusion because it implies some sort of hierarchical relationship between the merges, where there actually isn't any. For example:

$ bzr status
modified:
  src/...
  src/...
  src/...
  src/...
unknown:
  src/...
  src/...
pending merges:
  Wesley J. Landaker 2008-03-07 Added informative message about what ...
    Wesley J. Landaker 2008-03-07 Simpler naming for prebuild instances to ...
    Wesley J. Landaker 2008-03-07 Interactive progarm now supports all three ...
    Wesley J. Landaker 2008-03-07 Refactored phase shifting code. Added ...
    Wesley J. Landaker 2008-03-07 Note that PSDONE is latched.

The first merge is indented by 2 spaces like everything else. All the following merges are shown indented by 4 spaces. These merges have NO hierarchical relationship, which is what this indentation implies.

I've ran into this since bzr 0.9x, but it's finally bothered me enough to report a bug about it, since this still shows up with bzr 1.2. =)

Revision history for this message
Dan Watkins (oddbloke) wrote :

Hi Wesley,

Thanks for taking the time to file this bug! I'm afraid that the behaviour you describe is actually intentional, and visualises accurately what happens in a merge. When you merge in a branch, you are in fact merging in the last revision of the branch (the tip), which is indented 2 spaces. This revision depends on all of the other revisions, which won't actually be merged into the mainline (but will be part of the dependencies of the mainline) and so they are indented 4 spaces. This might be more obvious if you use the bzr-gtk plugin's 'bzr viz' command to examine the history in a more graphical manner.

As such, I'm marking this bug invalid. If you think that something different really should be happening, then this discussion would be better continued on the mailing list, which can be found at https://lists.ubuntu.com/mailman/listinfo/bazaar.

Thanks,

Dan

Changed in bzr:
status: New → Invalid
Revision history for this message
Wesley J. Landaker (wjl) wrote :

Hmmm... I guess I get what you are saying, but I'm still not sure it makes sense -- at least, it's not totally clear to the user what's going on. For instance, in the example I gave, after committing the merge, the revisions that are assigned are:

336 (the merge itself)
336.1.5 Wesley J. Landaker 2008-03-07 Added informative message about what ...
336.1.4 Wesley J. Landaker 2008-03-07 Simpler naming for prebuild instances to ...
336.1.3 Wesley J. Landaker 2008-03-07 Interactive progarm now supports all three ...
336.1.2 Wesley J. Landaker 2008-03-07 Refactored phase shifting code. Added ...
336.1.1 Wesley J. Landaker 2008-03-07 Note that PSDONE is latched.

I guess what you are saying kind of makes sense in that the first listed revision is the "tip" of that sequence of merges, and if I had multiple unrelated *sequences* of merges pending, then the indentation would help show that those lines of development were separate.

I won't argue with the resolution, since it sounds like this is indeed a design decision as opposed to an oversight--it's not too terrible to deal with either way. I for sure thought this was a bug since day 1 of using bzr. ;)

I'll have to think about if I have any suggestions about how this could be made more clear to the user, but if I have any insights maybe I'll bring it up on the list as you suggestion.

Anyway, thanks for the response and clarification.

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.