Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(278)

Issue 5577058: code review 5577058: cmd/go: solve ambiguity of get lp.net/project/foo (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by niemeyer
Modified:
13 years, 5 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

cmd/go: solve ambiguity of get lp.net/project/foo This solves the ambiguity for "lp.net/project/foo". In these URLs, "foo" could be a series name registered in Launchpad with its own branch, and it could also be the name of a directory within the main project branch one level up. Solve it by testing if the series branch exists in Launchpad and if it doesn't moving the root one level up.

Patch Set 1 #

Patch Set 2 : code review 5577058: cmd/go: solve ambiguity of lp.net/project/series #

Patch Set 3 : diff -r 24e6b9d71966 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 24e6b9d71966 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 5 : diff -r bb830abd7ed6 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -4 lines) Patch
M src/cmd/go/vcs.go View 1 2 3 4 4 chunks +24 lines, -4 lines 0 comments Download

Messages

Total messages: 4
niemeyer
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 5 months ago (2012-01-27 01:59:55 UTC) #1
rsc1
LGTM http://codereview.appspot.com/5577058/diff/2002/src/cmd/go/vcs.go File src/cmd/go/vcs.go (right): http://codereview.appspot.com/5577058/diff/2002/src/cmd/go/vcs.go#newcode419 src/cmd/go/vcs.go:419: _, err := httpGET(expand(match, "https://code.launchpad.net/{project}/{series}/.bzr/branch-format")) It looks like ...
13 years, 5 months ago (2012-01-27 02:45:48 UTC) #2
niemeyer
*** Submitted as http://code.google.com/p/go/source/detail?r=c8aa7d51eede *** cmd/go: solve ambiguity of get lp.net/project/foo This solves the ambiguity ...
13 years, 5 months ago (2012-01-27 02:58:32 UTC) #3
niemeyer
13 years, 5 months ago (2012-01-27 02:59:23 UTC) #4
http://codereview.appspot.com/5577058/diff/2002/src/cmd/go/vcs.go
File src/cmd/go/vcs.go (right):

http://codereview.appspot.com/5577058/diff/2002/src/cmd/go/vcs.go#newcode419
src/cmd/go/vcs.go:419: _, err := httpGET(expand(match,
"https://code.launchpad.net/{project}/{series}/.bzr/branch-format"))
On 2012/01/27 02:45:48, rsc1 wrote:
> It looks like series already has the / in it, so this would be
{project}{series}
> not {project}/{series}, right?

Fixed. Thanks.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b