4343.1.2
by Mark Shuttleworth
Add tool to find revisions not yet in trunk |
1 |
#! /bin/bash
|
8452.3.3
by Karl Fogel
* utilities/: Add copyright header block to source files that were |
2 |
#
|
8687.15.2
by Karl Fogel
In files modified by r8688, change "<YEARS>" to "2009", as per |
3 |
# Copyright 2009 Canonical Ltd. This software is licensed under the
|
8687.15.3
by Karl Fogel
Shorten the copyright header block to two lines. |
4 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
8452.3.3
by Karl Fogel
* utilities/: Add copyright header block to source files that were |
5 |
#
|
6567.2.2
by Barry Warsaw
Respond to review comments. |
6 |
# Check each of the branches in $LP_PROJECT_PATH and show which of them have
|
7 |
# uncommitted changes, also check which ones have revisions that have not yet
|
|
8 |
# landed on trunk.
|
|
6567.1.3
by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere. |
9 |
|
6673.1.3
by Barry Warsaw
Use $HOME instead of ~ |
10 |
source "$HOME/.rocketfuel-env.sh" |
6673.1.5
by Barry Warsaw
Respond to Edwin's review. |
11 |
if [ "$?" != 0 ]; then |
12 |
echo "Please run rocketfuel-setup first." |
|
13 |
exit 1 |
|
14 |
fi
|
|
6567.1.3
by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere. |
15 |
|
16 |
cd $LP_PROJECT_PATH |
|
4343.1.4
by Mark Shuttleworth
Look for uncommited changes as well in rocketfuel-status |
17 |
for branch in *; do |
6567.1.3
by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere. |
18 |
if [ ${branch} != "$LP_TRUNK_NAME" ] && test -d ${branch} ; then |
4343.1.4
by Mark Shuttleworth
Look for uncommited changes as well in rocketfuel-status |
19 |
echo "Examining ${branch}" |
20 |
cd ${branch} |
|
21 |
bzr status --short |
|
6567.1.3
by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere. |
22 |
cd $LP_TRUNK_PATH |
4343.1.5
by Mark Shuttleworth
Clean up output of bzr missing in rocketfuel-status |
23 |
bzr missing --theirs-only --line ../${branch} | grep -v "^You are missing" |
4420.1.1
by Elliot Murphy
Return to the correct directory at the bottom of the loop over all branches. |
24 |
cd ..
|
4343.1.2
by Mark Shuttleworth
Add tool to find revisions not yet in trunk |
25 |
fi; |
26 |
done; |