Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(59)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 5990067: namespace can be set via environment variable

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by hazmat
Modified:
13 years, 9 months ago
Reviewers:
niemeyer, mp+101381
Visibility:
Public.
namespace can be set via environment variable This infers default values for scheme, user, series from the an env var for assembling a charm url based on what's provided on the cli for a charm name. Based on clint's namespace-from-env branch. Refactored the defaults extraction to a helper function. https://code.launchpad.net/~hazmat/juju/ns-from-env/+merge/101381 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1
Created: 13 years, 9 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -17 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M juju/charm/repository.py View 2 chunks +5 lines, -2 lines 0 comments Download
M juju/charm/tests/test_url.py View 3 chunks +88 lines, -3 lines 1 comment Download
M juju/charm/url.py View 3 chunks +59 lines, -9 lines 0 comments Download
M juju/control/deploy.py View 1 chunk +6 lines, -1 line 0 comments Download
M juju/control/tests/test_deploy.py View 2 chunks +11 lines, -2 lines 0 comments Download
Total messages: 4
|
hazmat
Please take a look.
13 years, 9 months ago (2012年04月10日 14:18:23 UTC) #1
Please take a look.
Sign in to reply to this message.
niemeyer
https://codereview.appspot.com/5990067/diff/1/juju/charm/tests/test_url.py File juju/charm/tests/test_url.py (right): https://codereview.appspot.com/5990067/diff/1/juju/charm/tests/test_url.py#newcode129 juju/charm/tests/test_url.py:129: "name", "local", None, "default", "name", None, 'local') As discussed ...
13 years, 9 months ago (2012年04月10日 14:35:29 UTC) #2
https://codereview.appspot.com/5990067/diff/1/juju/charm/tests/test_url.py
File juju/charm/tests/test_url.py (right):
https://codereview.appspot.com/5990067/diff/1/juju/charm/tests/test_url.py#ne...
juju/charm/tests/test_url.py:129: "name", "local", None, "default", "name",
None, 'local')
As discussed in the thread in the mailing list, can we please support these
forms only:
1) scheme: (not "scheme" without colon.. that's potentially ambiguous with
series)
2) scheme:series or scheme:series/ (e.g. local:oneiric, or cs:oneiric/)
3) scheme:~user/series, or scheme:~user/series/ (e.g. cs:~spamaps/oneiric/)
Sign in to reply to this message.
hazmat
On Tue, Apr 10, 2012 at 10:35 AM, <n13m3y3r@gmail.com> wrote: > > https://codereview.appspot.**com/5990067/diff/1/juju/charm/** > tests/test_url.py<https://codereview.appspot.com/5990067/diff/1/juju/charm/tests/test_url.py> ...
13 years, 9 months ago (2012年04月10日 14:39:13 UTC) #3
On Tue, Apr 10, 2012 at 10:35 AM, <n13m3y3r@gmail.com> wrote:
>
> https://codereview.appspot.**com/5990067/diff/1/juju/charm/**
>
tests/test_url.py<https://codereview.appspot.com/5990067/diff/1/juju/charm/tests/test_url.py>
> File juju/charm/tests/test_url.py (right):
>
> https://codereview.appspot.**com/5990067/diff/1/juju/charm/**
>
tests/test_url.py#newcode129<https://codereview.appspot.com/5990067/diff/1/juju/charm/tests/test_url.py#newcode129>
> juju/charm/tests/test_url.py:**129: "name", "local", None, "default",
> "name", None, 'local')
> As discussed in the thread in the mailing list, can we please support
> these forms only:
>
> 1) scheme: (not "scheme" without colon.. that's potentially ambiguous
> with series)
>
why is scheme without a colon ambigious, scheme is required here, series is
optional and must be specified with a preceding scheme:
> 2) scheme:series or scheme:series/ (e.g. local:oneiric, or cs:oneiric/)
3) scheme:~user/series, or scheme:~user/series/ (e.g.
> cs:~spamaps/oneiric/)
>
>
i'll add the trailing slash support.
thanks for the review.
Sign in to reply to this message.
niemeyer
On 2012年04月10日 14:39:13, hazmat wrote: > > 1) scheme: (not "scheme" without colon.. that's potentially ...
13 years, 9 months ago (2012年04月10日 14:49:13 UTC) #4
On 2012年04月10日 14:39:13, hazmat wrote:
> > 1) scheme: (not "scheme" without colon.. that's potentially ambiguous
> > with series)
> 
> why is scheme without a colon ambigious, scheme is required here, series is
> optional and must be specified with a preceding scheme:
Because people are allowed to provide it in the command line. They type "juju
deploy series/foo". It sounds very plausible to do "A=series juju deploy foo" as
well, but that's incorrect, and should be flagged as such. Requiring the colon
is a cheap way to make that obvious.
Btw, if you disagree with the discussed design, would you mind to bring it up so
that we have a chance to talk about it? I'm getting a bit concerned that we
haven't really been talking about all those features, and I've been catching up
disagreements just by chance in notes passing by.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /