"after:" revisionspec, or 'log' exclusive range
Paul LeoNerd Evans
leonerd at leonerd.org.uk
Sat Sep 6 15:23:44 BST 2008
I use bazaar to revisioncontrol a collection of CPAN modules. Each time I
make a release, I apply a tag
$ bzr tag 'RELEASED 0.17'
I then have a shell script that hunts for the most recent "RELEASED .*"
tag, and lists all the revisions since then. Problem here is that it
lists inclusive; this list always starts with such a commit as
$ bzr-log-since-RELEASED
Commits since tag:RELEASED 0.17
379: Paul "LeoNerd" Evans 2008-09-05 Bumped version to 0.17; updated Changes notes
What I'd like is one of the following (in order of preference:)
$ bzr log --line -r after:latesttag:"RELEASED .*"..
$ bzr log --line -r after:tag:"RELEASED 0.17"..
$ bzr log --line --since tag:"RELEASED 0.17"
The behaviour here is that
-r latesttag:PATTERN - find the most recent tag matching the regexp
-r after:REVISION - the next revision after this one
(analogous to before:)
log --since REVISION - list all revisions after the given one
I imagine that "after:" here may in fact not find anything. I am also
aware it's not as simple an operation as "before" is. What I'd suggest is
that it be an operation on the revision number. That is, 21 comes after
20, 16.7.2 comes after 16.7.1, and so on.
There becomes a slight existence problem here - what if revision
"RELEASED 0.01" is the latest tag, for revision 12, and that is the
latest revision? I'd like
$ bzr log --line -r after:tag:"RELEASED 0.01"..
to mean
$ bzr log --line -r after:12..
i.e.
$ bzr log --line -r 13..
but currently that would give an error:
bzr: ERROR: Requested revision: u'13' does not exist in branch: ...
In this specific use case, I would like "bzr log" to simply give no
output. This makes it easy to look at what unreleased changes I have
across all my modules:
$ cd src/perl
$ for B in `bzr branches`; do bzr-log-since-RELEASED $B; done
--
Paul "LeoNerd" Evans
leonerd at leonerd.org.uk
ICQ# 4135350 | Registered Linux# 179460
http://www.leonerd.org.uk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080906/6a5bcec4/attachment.pgp
More information about the bazaar
mailing list