4343.1.2
by Mark Shuttleworth
Add tool to find revisions not yet in trunk |
1 |
#! /bin/bash
|
2 |
||
6567.2.2
by Barry Warsaw
Respond to review comments. |
3 |
# Check each of the branches in $LP_PROJECT_PATH and show which of them have
|
4 |
# uncommitted changes, also check which ones have revisions that have not yet
|
|
5 |
# landed on trunk.
|
|
6567.1.3
by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere. |
6 |
|
6673.1.3
by Barry Warsaw
Use $HOME instead of ~ |
7 |
source "$HOME/.rocketfuel-env.sh" |
6673.1.5
by Barry Warsaw
Respond to Edwin's review. |
8 |
if [ "$?" != 0 ]; then |
9 |
echo "Please run rocketfuel-setup first." |
|
10 |
exit 1 |
|
11 |
fi
|
|
6567.1.3
by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere. |
12 |
|
13 |
cd $LP_PROJECT_PATH |
|
4343.1.4
by Mark Shuttleworth
Look for uncommited changes as well in rocketfuel-status |
14 |
for branch in *; do |
6567.1.3
by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere. |
15 |
if [ ${branch} != "$LP_TRUNK_NAME" ] && test -d ${branch} ; then |
4343.1.4
by Mark Shuttleworth
Look for uncommited changes as well in rocketfuel-status |
16 |
echo "Examining ${branch}" |
17 |
cd ${branch} |
|
18 |
bzr status --short |
|
6567.1.3
by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere. |
19 |
cd $LP_TRUNK_PATH |
4343.1.5
by Mark Shuttleworth
Clean up output of bzr missing in rocketfuel-status |
20 |
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. |
21 |
cd ..
|
4343.1.2
by Mark Shuttleworth
Add tool to find revisions not yet in trunk |
22 |
fi; |
23 |
done; |