Merge lp:~davidc3/developer-ubuntu-com/no-git-protocol into lp:developer-ubuntu-com

Proposed by David Callé
Status: Merged
Approved by: Daniel Holbach
Approved revision: 164
Merged at revision: 163
Proposed branch: lp:~davidc3/developer-ubuntu-com/no-git-protocol
Merge into: lp:developer-ubuntu-com
Diff against target: 45 lines (+6/-4)
2 files modified
developer_portal/management/commands/import-external-docs-branches.py (+5/-3)
developer_portal/models.py (+1/-1)
To merge this branch: bzr merge lp:~davidc3/developer-ubuntu-com/no-git-protocol
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Review via email: mp+276411@code.launchpad.net

Description of the change

Switch to github https instead of git protocol
+ misc wording and checks

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Inline comments.

164. By David Callé

Less wording changes, better branch name parsing

Revision history for this message
Daniel Holbach (dholbach) wrote :

Great, thanks

review: Approve
Revision history for this message
Daniel Holbach (dholbach) wrote :

Great, thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'developer_portal/management/commands/import-external-docs-branches.py'
--- developer_portal/management/commands/import-external-docs-branches.py 2015-10-30 10:34:06 +0000
+++ developer_portal/management/commands/import-external-docs-branches.py 2015-11-02 16:48:17 +0000
@@ -229,7 +229,7 @@
229 "<code>%s</code> Snappy branch.</p>"229 "<code>%s</code> Snappy branch.</p>"
230 "<p><ul class=\"list-ubuntu\">%s</ul></p>\n"230 "<p><ul class=\"list-ubuntu\">%s</ul></p>\n"
231 "<p>Auto-imported from <a "231 "<p>Auto-imported from <a "
232 "href=\"https://code.launchpad.net/snappy\">%s</a>.</p>\n"232 "href=\"https://github.com/ubuntu-core/snappy\">%s</a>.</p>\n"
233 "</div></div>") % (self.release_alias, list_pages,233 "</div></div>") % (self.release_alias, list_pages,
234 self.external_branch.lp_origin)234 self.external_branch.lp_origin)
235 self.db_actions.add_page(235 self.db_actions.add_page(
@@ -309,7 +309,8 @@
309 if os.path.exists(checkout_location):309 if os.path.exists(checkout_location):
310 shutil.rmtree(checkout_location)310 shutil.rmtree(checkout_location)
311 break311 break
312 if branch.lp_origin.startswith('lp:snappy'):312 if branch.lp_origin.startswith('lp:snappy') or \
313 'snappy' in branch.lp_origin.split(':')[1].split('.git')[0].split('/'):
313 local_branch = SnappyLocalBranch(checkout_location, branch,314 local_branch = SnappyLocalBranch(checkout_location, branch,
314 db_actions)315 db_actions)
315 else:316 else:
@@ -332,7 +333,8 @@
332 return subprocess.call([333 return subprocess.call([
333 'bzr', 'checkout', '--lightweight', self.branch_origin,334 'bzr', 'checkout', '--lightweight', self.branch_origin,
334 self.checkout_location])335 self.checkout_location])
335 if self.branch_origin.startswith('git://') and \336 if self.branch_origin.startswith('https://github.com') and \
337 self.branch_origin.endswith('.git') and \
336 os.path.exists('/usr/bin/git'):338 os.path.exists('/usr/bin/git'):
337 return subprocess.call([339 return subprocess.call([
338 'git', 'clone', '-q', self.branch_origin,340 'git', 'clone', '-q', self.branch_origin,
339341
=== modified file 'developer_portal/models.py'
--- developer_portal/models.py 2015-10-30 08:50:29 +0000
+++ developer_portal/models.py 2015-11-02 16:48:17 +0000
@@ -27,7 +27,7 @@
27 lp_origin = models.CharField(27 lp_origin = models.CharField(
28 max_length=200,28 max_length=200,
29 help_text=_('External branch location, ie: lp:snappy/15.04 or '29 help_text=_('External branch location, ie: lp:snappy/15.04 or '
30 'git://github.com/ubuntu-core/snappy'))30 'https://github.com/ubuntu-core/snappy.git'))
31 docs_namespace = models.CharField(31 docs_namespace = models.CharField(
32 max_length=120,32 max_length=120,
33 help_text=_('Path alias we want to use for the docs, '33 help_text=_('Path alias we want to use for the docs, '

Subscribers

People subscribed via source and target branches