Merge lp://staging/~sinzui/juju-ci-tools/reverse-branches into lp://staging/juju-ci-tools
Status: | Merged |
---|---|
Merged at revision: | 1108 |
Proposed branch: | lp://staging/~sinzui/juju-ci-tools/reverse-branches |
Merge into: | lp://staging/juju-ci-tools |
Diff against target: |
15 lines (+2/-2) 1 file modified
git-recent.bash (+2/-2) |
To merge this branch: | bzr merge lp://staging/~sinzui/juju-ci-tools/reverse-branches |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Packman (community) | Approve | ||
Aaron Bentley (community) | Approve | ||
Review via email: mp+271821@code.staging.launchpad.net |
Description of the change
Reverse the listing of branches, don't sort them.
The rules to get a list of branches sorted by commit date are undermined by the use of "sort --reverse", which is a z-a sort, where we want to just reverse the listing to place the branches with the oldest commits first. The "tail -r" does what we intended to do.
We removed all the preferred branches from CI's crontab help CI test the backlog of older branches. We can see this morning that CI has been testing master and maltese-falcon. The tests are reverse alphabetical instead of old untested commits.
We can see from this listing and CI's build-revision job that environ-
5 minutes ago gitbranch:
8 hours ago gitbranch:
3 days ago gitbranch:
3 days ago gitbranch:
3 days ago gitbranch:
3 days ago gitbranch:
4 days ago gitbranch:
4 days ago gitbranch:
4 days ago gitbranch:
10 days ago gitbranch:
tail: invalid option -- 'r'
I recommend "tac", which seems less likely to truncate the input.