~launchpad-pqm/launchpad/devel

1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
1
#! /bin/sh
2
1194 by Canonical.com Patch Queue Manager
rosetta stats legend, fixes for hoary
3
# Find the location of your Launchpad
4
if [ ! -f ~/.rocketfuel ]; then
5
  echo "You need a file called ~/.rocketfuel containing a single line"
6
  echo "like:"
7
  echo "   LAUNCHPAD=~/projects/ubuntu"
8
  echo "This line should give the location of the top level directory"
9
  echo "containing your launchpad and config checkouts."
10
  exit 1
11
fi
12
source ~/.rocketfuel
13
14
# check that your .rocketfuel file included a line giving the launchpad
15
# checkout location
16
if [ ! $LAUNCHPAD ]; then
17
  echo "Your ~/.rocketfuel file must include a line giving the location"
2296.1.8 by Matthew Thomas
launchpd -> launchpad
18
  echo "of your launchpad directory, of the form"
1194 by Canonical.com Patch Queue Manager
rosetta stats legend, fixes for hoary
19
  echo "LAUNCHPAD=~/projects/ubuntu"
20
  echo
21
  echo "Of course, use the correct location for your setup. The"
22
  echo "directory you specify should at least contain your configs"
2296.1.8 by Matthew Thomas
launchpd -> launchpad
23
  echo "(in a directory called configs) and your launchpad checkout"
1194 by Canonical.com Patch Queue Manager
rosetta stats legend, fixes for hoary
24
  echo "in a directory called launchpad."
25
  exit 1
26
fi
27
2178 by Canonical.com Patch Queue Manager
[trivial] add branch pages and portlets
28
ssh-add -l
29
if [ $? -gt 0 ]; then
30
  ssh-add
31
fi
1686 by Canonical.com Patch Queue Manager
Add <abbr> elements for CVE; fix cursor for formHelp. (trivial)
32
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
33
# update the code that is brought directly into the tree
1194 by Canonical.com Patch Queue Manager
rosetta stats legend, fixes for hoary
34
cd $LAUNCHPAD
1677 by Canonical.com Patch Queue Manager
fixes for baz import pages
35
baz cat-config configs/canonical.com/launchpad/development | while read dirname branch; do baz tree-version -d $dirname; baz update -d $dirname; done
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
36
# then check if there are unmerged changes
1194 by Canonical.com Patch Queue Manager
rosetta stats legend, fixes for hoary
37
cd launchpad
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
38
baz diff -q
39
if [ $? -gt 0 ]; then
40
    echo "You've got changes! Please commit them before refueling"
41
    exit 1
42
fi;
43
44
# check for loose files
1038 by Canonical.com Patch Queue Manager
soyuz cleanups and restructuring
45
baz status --lint --untagged-files --strict
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
46
if [ $? -gt 0 ]; then
47
  echo "You have untagged files. Please add them and commit before refueling."
48
  exit 1
49
fi
50
51
# now merge launchpad with the rocketfuel repo
1411 by Canonical.com Patch Queue Manager
page title RAMPAGE and bounty subscriptions
52
baz merge rocketfuel@canonical.com/launchpad--devel--0
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
53
54
# check for conflicts, and if none exist, commit the merge
1038 by Canonical.com Patch Queue Manager
soyuz cleanups and restructuring
55
FILELIST=$(find . -name "*.orig" -or -name "*.rej" -print)
56
if [ ! -z "$FILELIST" ]; then
1194 by Canonical.com Patch Queue Manager
rosetta stats legend, fixes for hoary
57
  echo "WARNING: You have conflicts. Please resolve them and commit before"
58
  echo "         doing any additional work."
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
59
  exit 1
60
else
1038 by Canonical.com Patch Queue Manager
soyuz cleanups and restructuring
61
  baz diff --quiet
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
62
  if [ $? -gt 0 ]; then
63
    # commit the merged changes
64
    baz commit -s "merge rocketfuel"
65
    # show the commited star-merge delta
66
    baz delta --diffs $(baz logs -f | tail -2) | less
67
  fi
68
fi
69
70