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
=== modified file 'utilities/rocketfuel-setup'
--- utilities/rocketfuel-setup 2009-07-09 17:37:31 +0000
+++ utilities/rocketfuel-setup 2009-07-17 05:11:02 +0000
@@ -9,7 +9,7 @@
9#9#
10# The ones you can set are:10# The ones you can set are:
11#11#
12# LP_PROJECT_ROOT - The root directory of all your Canonical stuff. Your12# LP_PROJECT_ROOT - The root directory of all your Launchpad stuff. Your
13# Launchpad shared repository will live in a child directory13# Launchpad shared repository will live in a child directory
14# of this directory.14# of this directory.
15# LP_SHARED_REPO - Your Launchpad shared repository directory. All of your15# LP_SHARED_REPO - Your Launchpad shared repository directory. All of your
@@ -22,10 +22,10 @@
22# path appended to it, since this is automatically added by22# path appended to it, since this is automatically added by
23# the scripts.23# the scripts.
2424
25LP_PROJECT_ROOT=\${LP_PROJECT_ROOT:=~/canonical}25LP_PROJECT_ROOT=\${LP_PROJECT_ROOT:=~/launchpad}
26LP_SHARED_REPO=\${LP_SHARED_REPO:=lp-branches}26LP_SHARED_REPO=\${LP_SHARED_REPO:=lp-branches}
27LP_PROJECT_PATH=\$LP_PROJECT_ROOT/\$LP_SHARED_REPO27LP_PROJECT_PATH=\$LP_PROJECT_ROOT/\$LP_SHARED_REPO
28LP_TRUNK_NAME=\${LP_TRUNK_NAME:=trunk}28LP_TRUNK_NAME=\${LP_TRUNK_NAME:=devel}
29LP_TRUNK_PATH=\$LP_PROJECT_PATH/\$LP_TRUNK_NAME29LP_TRUNK_PATH=\$LP_PROJECT_PATH/\$LP_TRUNK_NAME
3030
31LP_SOURCEDEPS_DIR=\${LP_SOURCEDEPS_DIR:=lp-sourcedeps}31LP_SOURCEDEPS_DIR=\${LP_SOURCEDEPS_DIR:=lp-sourcedeps}
@@ -301,9 +301,11 @@
301cd $LP_SHARED_REPO301cd $LP_SHARED_REPO
302if [ ! -d $LP_TRUNK_NAME ]; then302if [ ! -d $LP_TRUNK_NAME ]; then
303 echo "Making local branch of Launchpad trunk, this may take a while..."303 echo "Making local branch of Launchpad trunk, this may take a while..."
304 # bzr up to 1.6b2 has a bug that causes this to oom, but since 1.10 is304 # We use "http://" instead of "bzr+ssh://" for the initial pull
305 # released now I hope nobody is using it.305 # because it's the long pulls that are hardest on the server. Once
306 bzr branch bzr+ssh://bazaar.launchpad.net/~launchpad-pqm/launchpad/devel/ $LP_TRUNK_NAME306 # the bulk of the data is across, subsequent accesses can use
307 # bzr+ssh://, which will perform better.
308 bzr branch http://bazaar.launchpad.net/~launchpad-pqm/launchpad/devel/ $LP_TRUNK_NAME
307 if [ $? -ne 0 ]; then309 if [ $? -ne 0 ]; then
308 echo "ERROR: Unable to create local copy of Rocketfuel trunk"310 echo "ERROR: Unable to create local copy of Rocketfuel trunk"
309 exit 1311 exit 1
@@ -346,13 +348,11 @@
346if [ $? -ne 0 ]; then348if [ $? -ne 0 ]; then
347 cat >> ~/.bazaar/locations.conf << EOF349 cat >> ~/.bazaar/locations.conf << EOF
348[$LP_PROJECT_PATH]350[$LP_PROJECT_PATH]
349pqm_email = Launchpad PQM <launchpad@pqm.canonical.com>
350submit_branch = ${LP_TRUNK_PATH}351submit_branch = ${LP_TRUNK_PATH}
351public_branch = bzr+ssh://bazaar.launchpad.net/~${lpusername}/launchpad352public_branch = bzr+ssh://bazaar.launchpad.net/~${lpusername}/launchpad
352public_branch:policy = appendpath353public_branch:policy = appendpath
353push_location = lp:~${lpusername}/launchpad354push_location = lp:~${lpusername}/launchpad
354push_location:policy = appendpath355push_location:policy = appendpath
355review_list = Launchpad Reviews <launchpad-reviews@lists.canonical.com>
356merge_target = ${LP_TRUNK_PATH}356merge_target = ${LP_TRUNK_PATH}
357submit_to = merge@code.launchpad.net357submit_to = merge@code.launchpad.net
358EOF358EOF
@@ -365,19 +365,7 @@
365" | tee -a ~/.bazaar/locations.conf > /dev/null365" | tee -a ~/.bazaar/locations.conf > /dev/null
366fi366fi
367367
368if [ ! -e ~/.bazaar/bazaar.conf ]; then368echo "Bazaar branch configuration updated."
369 touch ~/.bazaar/bazaar.conf
370fi
371grep -q "smtp_username" ~/.bazaar/bazaar.conf
372if [ $? -ne 0 ]; then
373 cat >> ~/.bazaar/bazaar.conf << EOF
374smtp_server = smtp.canonical.com:587
375smtp_username = canonical
376smtp_password = <find me at https://wiki.canonical.com/EmailSetup>
377EOF
378fi
379
380 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."
381369
382fi370fi
383371
@@ -444,21 +432,19 @@
444/usr/local/bin/rocketfuel-get432/usr/local/bin/rocketfuel-get
445433
446echo "434echo "
447Thank you for using this script. You can improve it for everyone by435Thank you for using this script. You can improve it for everyone by
448committing changes to LP in utilities/rocketfuel-setup.436committing changes to LP in utilities/rocketfuel-setup.
449437
450Before you can submit branches to PQM, you need to visit:438Please see http://dev.launchpad.net/ for more information on
451https://wiki.canonical.com/EmailSetup and find the current SMTP server439developing and testing Launchpad, and on submitting changes.
452password and enter it in the appropriate place in
453HOME/.bazaar/bazaar.conf. Alternatively, configure it to use your own
454SMTP server locally.
455440
456You should use the following commands to manage your Rocketfuel:441You can use the following commands to manage your Launchpad
442development environment:
457443
458 rocketfuel-get444 rocketfuel-get
459 Update your copy of trunk and the necessary source dependencies, and445 Update your copy of $LP_TRUNK_NAME and the necessary source
460 make sure all source dependencies are properly linked in to all the446 dependencies, and make sure all source dependencies are properly
461 branches you are working on.447 linked in to all the branches you are working on.
462448
463 rocketfuel-branch foo449 rocketfuel-branch foo
464 Create a new branch of LP called \"foo\" in450 Create a new branch of LP called \"foo\" in