Merge lp:~kfogel/launchpad/rocketfuel-publicly-palatable into lp:launchpad

Proposed by Karl Fogel
Status: Merged
Merged at revision: not available
Proposed branch: lp:~kfogel/launchpad/rocketfuel-publicly-palatable
Merge into: lp:launchpad
Diff against target: None lines
To merge this branch: bzr merge lp:~kfogel/launchpad/rocketfuel-publicly-palatable
Reviewer Review Type Date Requested Status
Jonathan Lange (community) Approve
Review via email: mp+8926@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Karl Fogel (kfogel) wrote :

Bunch of small changes to rocketfuel-setup to make it (somewhat more) publicly palatable.

  * Use more appropriate defaults for LP_PROJECT_ROOT and LP_TRUNK_NAME.
  * Remove review_list from the ~/.bazaar/locations.conf initialization.
  * Update the welcome message printed at the end of the script.
  * Remove all stuff about submitting to pqm via email.
  * Use "http://" instead of "bzr+ssh://" for the initial pull URL.

Revision history for this message
Jonathan Lange (jml) wrote :

All the code changes look fine. Have you had a chance to run it in a clean environment?

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'utilities/rocketfuel-setup'
2--- utilities/rocketfuel-setup 2009-07-09 17:37:31 +0000
3+++ utilities/rocketfuel-setup 2009-07-17 05:11:02 +0000
4@@ -9,7 +9,7 @@
5 #
6 # The ones you can set are:
7 #
8-# LP_PROJECT_ROOT - The root directory of all your Canonical stuff. Your
9+# LP_PROJECT_ROOT - The root directory of all your Launchpad stuff. Your
10 # Launchpad shared repository will live in a child directory
11 # of this directory.
12 # LP_SHARED_REPO - Your Launchpad shared repository directory. All of your
13@@ -22,10 +22,10 @@
14 # path appended to it, since this is automatically added by
15 # the scripts.
16
17-LP_PROJECT_ROOT=\${LP_PROJECT_ROOT:=~/canonical}
18+LP_PROJECT_ROOT=\${LP_PROJECT_ROOT:=~/launchpad}
19 LP_SHARED_REPO=\${LP_SHARED_REPO:=lp-branches}
20 LP_PROJECT_PATH=\$LP_PROJECT_ROOT/\$LP_SHARED_REPO
21-LP_TRUNK_NAME=\${LP_TRUNK_NAME:=trunk}
22+LP_TRUNK_NAME=\${LP_TRUNK_NAME:=devel}
23 LP_TRUNK_PATH=\$LP_PROJECT_PATH/\$LP_TRUNK_NAME
24
25 LP_SOURCEDEPS_DIR=\${LP_SOURCEDEPS_DIR:=lp-sourcedeps}
26@@ -301,9 +301,11 @@
27 cd $LP_SHARED_REPO
28 if [ ! -d $LP_TRUNK_NAME ]; then
29 echo "Making local branch of Launchpad trunk, this may take a while..."
30- # bzr up to 1.6b2 has a bug that causes this to oom, but since 1.10 is
31- # released now I hope nobody is using it.
32- bzr branch bzr+ssh://bazaar.launchpad.net/~launchpad-pqm/launchpad/devel/ $LP_TRUNK_NAME
33+ # We use "http://" instead of "bzr+ssh://" for the initial pull
34+ # because it's the long pulls that are hardest on the server. Once
35+ # the bulk of the data is across, subsequent accesses can use
36+ # bzr+ssh://, which will perform better.
37+ bzr branch http://bazaar.launchpad.net/~launchpad-pqm/launchpad/devel/ $LP_TRUNK_NAME
38 if [ $? -ne 0 ]; then
39 echo "ERROR: Unable to create local copy of Rocketfuel trunk"
40 exit 1
41@@ -346,13 +348,11 @@
42 if [ $? -ne 0 ]; then
43 cat >> ~/.bazaar/locations.conf << EOF
44 [$LP_PROJECT_PATH]
45-pqm_email = Launchpad PQM <launchpad@pqm.canonical.com>
46 submit_branch = ${LP_TRUNK_PATH}
47 public_branch = bzr+ssh://bazaar.launchpad.net/~${lpusername}/launchpad
48 public_branch:policy = appendpath
49 push_location = lp:~${lpusername}/launchpad
50 push_location:policy = appendpath
51-review_list = Launchpad Reviews <launchpad-reviews@lists.canonical.com>
52 merge_target = ${LP_TRUNK_PATH}
53 submit_to = merge@code.launchpad.net
54 EOF
55@@ -365,19 +365,7 @@
56 " | tee -a ~/.bazaar/locations.conf > /dev/null
57 fi
58
59-if [ ! -e ~/.bazaar/bazaar.conf ]; then
60- touch ~/.bazaar/bazaar.conf
61-fi
62-grep -q "smtp_username" ~/.bazaar/bazaar.conf
63-if [ $? -ne 0 ]; then
64- cat >> ~/.bazaar/bazaar.conf << EOF
65-smtp_server = smtp.canonical.com:587
66-smtp_username = canonical
67-smtp_password = <find me at https://wiki.canonical.com/EmailSetup>
68-EOF
69-fi
70-
71- echo "Bazaar branch configuration updated. You may need to set smtp_server in ~/.bazaar/locations.conf to something else if email to PQM does not work."
72+echo "Bazaar branch configuration updated."
73
74 fi
75
76@@ -444,21 +432,19 @@
77 /usr/local/bin/rocketfuel-get
78
79 echo "
80-Thank you for using this script. You can improve it for everyone by
81+Thank you for using this script. You can improve it for everyone by
82 committing changes to LP in utilities/rocketfuel-setup.
83
84-Before you can submit branches to PQM, you need to visit:
85-https://wiki.canonical.com/EmailSetup and find the current SMTP server
86-password and enter it in the appropriate place in
87-HOME/.bazaar/bazaar.conf. Alternatively, configure it to use your own
88-SMTP server locally.
89+Please see http://dev.launchpad.net/ for more information on
90+developing and testing Launchpad, and on submitting changes.
91
92-You should use the following commands to manage your Rocketfuel:
93+You can use the following commands to manage your Launchpad
94+development environment:
95
96 rocketfuel-get
97- Update your copy of trunk and the necessary source dependencies, and
98- make sure all source dependencies are properly linked in to all the
99- branches you are working on.
100+ Update your copy of $LP_TRUNK_NAME and the necessary source
101+ dependencies, and make sure all source dependencies are properly
102+ linked in to all the branches you are working on.
103
104 rocketfuel-branch foo
105 Create a new branch of LP called \"foo\" in