[MERGE] show (possibly dotted) revnos in `bzr tags` (v2)

Adeodato Simó dato at net.com.org.es
Tue Sep 18 12:51:30 BST 2007


Okay, as per feedback, I'm now not showing revision ids unless --show-ids
is passed, and revnos will be dotted if necessary.

If a revid is not present in the branch, I'm showing '?' instead of the
revision id. I think that's more consistent and I like it better, but of
course I can change it if reviewers prefer it the other way.

Finally, I've changed the order in which tags are shown, from sorting
them by name, to sorting them by revision number. I really think this is
more useful. Comments welcome.

See below for an example of the output with and without --show-ids.

(BTW, I'm a bit puzzled by the diff lines generated by `bzr send` and
`bzr diff` in this case: if you check with care the diff for
test_tags.py, you'll note there are three lines which are deleted and
added, whereas /usr/bin/diff gets it right. The lines are:

    out, err = self.run_bzr('tags -d branch1', encoding='utf-8')
    self.assertEquals(err, '')
    self.assertContainsRe(out,

Is this some kind of bug?)

% bzr tags
0.7-2                2
0.8.1-1              6
0.9.0-1              9
0.10.0-2             10
0.11.0-1             11
0.16.1-1             17
0.17.1-1             22.1.2
0.18.0-1             29
0.90.0-1             33
0.91.0-1             ?

% bzr tags --show-ids
0.7-2                2:stratus-20060507035335-aa563a97409e6b0a
0.8.1-1              6:stratus-20060520153101-ee34dc54b2e64e8a
0.9.0-1              9:stratus-20060825180616-ae66c43c7fd16a94
0.10.0-2             10:stratus-20060919175512-167930889243d43d
0.11.0-1             11:stratus-20061128173110-88924ff1ef22325a
0.16.1-1             17:siretart at tauware.de-20070509095307-occwyxvg2cjhr4j5
0.17.1-1             22.1.2:dato at net.com.org.es-20070615155205-zr6e54m6c9duwpmj
0.18.0-1             29:dato at net.com.org.es-20070717161538-qy9wsewauusbn3nr
0.90.0-1             33:dato at net.com.org.es-20070815100938-y2bhsavdw94vsd99
0.91.0-1             ?:dato at net.com.org.es-20070914083051-4e38y28c6ckkm72o

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
Every program has at least one bug and can be shortened by at least one
instruction -- from which, by induction, one can deduce that every
program can be reduced to one instruction which doesn't work.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr.revno_in_tags_v2.diff
Type: text/x-diff
Size: 8779 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070918/bc0b8f3b/attachment.bin 


More information about the bazaar mailing list