Curtis explained where the ideas for the new format came from, but I'll send out an email so that it becomes more widely known and agreed upon. I have added the directions for pushing a personal branch that Curtis asked for.
=== modified file 'lib/lp/code/stories/branches/xx-person-branches.txt'
--- lib/lp/code/stories/branches/xx-person-branches.txt 2010-10-15 14:19:41 +0000
+++ lib/lp/code/stories/branches/xx-person-branches.txt 2010-10-18 20:28:35 +0000
@@ -33,6 +33,19 @@
There are no branches related to Daniel Silverstone in Launchpad today.
+Junk branches
+=============
+
+On the user's own code page, they will see directions on pushing a branch.
+
+ >>> browser.open('http://code.launchpad.dev/~name12')
+ >>> print extract_text(
+ ... find_tag_by_id(browser.contents, 'junk-branch-directions'))
+ You can push (upload) personal branches
+ (those not related to a project) with the following command:
+ bzr push lp:~name12/+junk/BRANCHNAME
+
+
Owned Branches
==============
+ <p id="junk-branch-directions" tal:condition="view/show_junk_directions">
+ You can push (upload) personal branches
+ (those not related to a project) with the following command:
+ <br/>
+ <tt>bzr push lp:~<tal:name
+ replace="view/user/name"/>/+junk/<em>BRANCHNAME</em></tt>
+ </p>
+
<div id="no-branch-message" tal:condition="not: view/branch_count">
<p tal:content="view/no_branch_message">
There are no branches related to Eric the Viking today.
Curtis explained where the ideas for the new format came from, but I'll send out an email so that it becomes more widely known and agreed upon. I have added the directions for pushing a personal branch that Curtis asked for.
Here is the incremental diff.
=== modified file 'lib/lp/ code/browser/ branchlisting. py' code/browser/ branchlisting. py 2010-10-15 01:48:05 +0000 code/browser/ branchlisting. py 2010-10-18 19:57:05 +0000
--- lib/lp/
+++ lib/lp/
@@ -977,7 +977,11 @@
@property menu(self) : n('launchpad. Edit', self.context) inTeam( self.context) directions( self):
def show_action_
- return check_permissio
+ return self.user.
+
+ @property
+ def show_junk_
+ return self.user == self.context
@property values( self):
def initial_
=== modified file 'lib/lp/ code/stories/ branches/ xx-person- branches. txt' code/stories/ branches/ xx-person- branches. txt 2010-10-15 14:19:41 +0000 code/stories/ branches/ xx-person- branches. txt 2010-10-18 20:28:35 +0000
--- lib/lp/
+++ lib/lp/
@@ -33,6 +33,19 @@
There are no branches related to Daniel Silverstone in Launchpad today.
+Junk branches code.launchpad. dev/~name12') by_id(browser. contents, 'junk-branch- directions' ))
+=============
+
+On the user's own code page, they will see directions on pushing a branch.
+
+ >>> browser.open('http://
+ >>> print extract_text(
+ ... find_tag_
+ You can push (upload) personal branches
+ (those not related to a project) with the following command:
+ bzr push lp:~name12/+junk/BRANCHNAME
+
+
Owned Branches
==============
=== modified file 'lib/lp/ code/templates/ person- branches. pt' code/templates/ person- branches. pt 2010-10-15 01:48:05 +0000 code/templates/ person- branches. pt 2010-10-18 20:28:33 +0000 slot="main" define= "branches view/branches">
--- lib/lp/
+++ lib/lp/
@@ -25,6 +25,14 @@
<div metal:fill-
tal:
+ <p id="junk- branch- directions" tal:condition= "view/show_ junk_directions "> "view/user/ name"/> /+junk/ <em>BRANCHNAME< /em></tt> branch- message" tal:condition="not: view/branch_count"> "view/no_ branch_ message" >
+ You can push (upload) personal branches
+ (those not related to a project) with the following command:
+ <br/>
+ <tt>bzr push lp:~<tal:name
+ replace=
+ </p>
+
<div id="no-
<p tal:content=
There are no branches related to Eric the Viking today.