Merge lp:~matthew.revell/launchpad/bug-215798 into lp:launchpad

Proposed by Matthew Revell
Status: Merged
Approved by: Barry Warsaw
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp:~matthew.revell/launchpad/bug-215798
Merge into: lp:launchpad
Diff against target: 55 lines
2 files modified
lib/lp/code/help/register-branch.html (+38/-0)
lib/lp/code/templates/branch-form-macros.pt (+1/-1)
To merge this branch: bzr merge lp:~matthew.revell/launchpad/bug-215798
Reviewer Review Type Date Requested Status
Barry Warsaw (community) Approve
Review via email: mp+12792@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Matthew Revell (matthew.revell) wrote :

This branch adds a pop-up help links to the "register a branch" page.

The help explains that pre-registering a branch is not necessary and mentions that you must use the "use-existing-dir" option on your first push to the pre-registered branch.

Files touched:

lib/lp/code/help/register-branch.html
lib/lp/code/templates/branch-form-macros.pt

Revision history for this message
Barry Warsaw (barry) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'lib/lp/code/help/register-branch.html'
--- lib/lp/code/help/register-branch.html 1970-01-01 00:00:00 +0000
+++ lib/lp/code/help/register-branch.html 2009-10-02 15:46:12 +0000
@@ -0,0 +1,38 @@
1<html>
2 <head>
3 <title>Uploading a branch without registering</title>
4 <link rel="stylesheet" type="text/css"
5 href="/+icing/yui/current/build/cssreset/reset.css" />
6 <link rel="stylesheet" type="text/css"
7 href="/+icing/yui/current/build/cssfonts/fonts.css" />
8 <link rel="stylesheet" type="text/css"
9 href="/+icing/yui/current/build/cssbase/base.css" />
10 </head>
11 <body>
12 <h1>Uploading a branch without registering</h1>
13
14 <p>If you want to host a Bazaar branch on Launchpad, you can push it straight to Launchpad without first registering.</p>
15
16 <p>Simply open up your terminal, change to the directory that contains your Bazaar branch and type:</p>
17
18 <p>
19 <code>
20 bzr launchpad-login userid<br />
21 bzr push lp:~userid/project-name/branch-name
22 </code>
23 </p>
24
25 <p>Replace <em>userid</em> with your Launchpad id, <em>project-name</em> with the project's Launchpad id and then chose whichever branch name you want.</p>
26
27 <p><a href="https://help.launchpad.net/Code/UploadingABranch" target="_blank">Read more about pushing Bazaar branches to Launchpad &gt;</a></p>
28
29 <h2>If you register the branch in Launchpad before pushing to it</h2>
30
31 <p>If you register the branch in Launchpad's web interface, before pushing anything to it, you'll need to use a slightly different Bazaar command the first time you push anything to the branch:</p>
32
33 <p>
34 <code>bzr push lp:~userid/project-name/branch-name --use-existing-dir</code>
35 </p>
36
37 </body>
38</html>
039
=== modified file 'lib/lp/code/templates/branch-form-macros.pt'
--- lib/lp/code/templates/branch-form-macros.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/code/templates/branch-form-macros.pt 2009-10-02 15:46:12 +0000
@@ -7,7 +7,7 @@
77
8 <div id="branch-unique-name-div" style="display:none">8 <div id="branch-unique-name-div" style="display:none">
9 The resulting location of the branch will be:9 The resulting location of the branch will be:
10 <strong><span id="branch-unique-name"></span></strong>10 <strong><span id="branch-unique-name"></span></strong> (<a href="/+help/register-branch.html" target="help">Do you need to register?</a>)
11 </div>11 </div>
1212
13 <div metal:use-macro="context/@@launchpad_form/form">13 <div metal:use-macro="context/@@launchpad_form/form">