Merge lp:~jameinel/bzr/2.0.5-switch-unicode-317778 into lp:bzr
| Status: | Rejected |
|---|---|
| Rejected by: | Robert Collins on 2010-06-24 |
| Proposed branch: | lp:~jameinel/bzr/2.0.5-switch-unicode-317778 |
| Merge into: | lp:bzr |
| Diff against target: |
13 lines (+3/-0) 1 file modified
bzrlib/builtins.py (+3/-0) |
| To merge this branch: | bzr merge lp:~jameinel/bzr/2.0.5-switch-unicode-317778 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Martin Pool | 2010-02-11 | Needs Fixing on 2010-02-11 | |
|
Review via email:
|
|||
| John A Meinel (jameinel) wrote : | # |
| Martin Pool (mbp) wrote : | # |
It looks basically ok.
If there is an existing test we can amend to use a unicode name that would be nice.
It seems like really this should be lifted out of branch itself though.
| John A Meinel (jameinel) wrote : | # |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Martin Pool wrote:
> Review: Needs Fixing
> It looks basically ok.
>
> If there is an existing test we can amend to use a unicode name that would be nice.
>
> It seems like really this should be lifted out of branch itself though.
so the issue is that if Branch.
urlutils.
And at that point 'to_location' is expected to be a URL, but is actually
a Unicode string. This works for pure ascii, but not otherwise.
We could change the 'join' calls to be
urlutils.
I think there are 2 locations, though. also note that we probably want
to change the order of lookup. We set a lightweight location before a
heavyweight one, but we lookup the heavyweight neighbor before the
lightweight one.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkt
E6QAn16WSWrgu5k
=9qBD
-----END PGP SIGNATURE-----
| Robert Collins (lifeless) wrote : | # |
John has said that he's not intending to complete this, so changing the MP to rejected for clarity; the bug and branch are still linked and the bug is still open.
Unmerged revisions
- 4730. By philyoon on 2010-02-11
-
Escape the to_location for 'bzr switch'
so that it can handle non-ascii sibling branch names.Needs tests. Bug #317778

This is an attempt to propose the patch on bug #317778 as a merge request.
I think it has a lot of stuff missing (needs tests, some manual testing to make sure we haven't regressed for other cases, etc.)
get_transport() has a fair amount of DWIM code to allow users to specify whatever works the best for them, and I don't think that is also in urlutils.escape(). We use that mostly to allow people to specify a Unicode path, while internally we treat things as URLs. But users may also specify the url on the command line.
Anyway, getting this put up as a Merge Proposal in some form seemed better than leaving it as an abandoned patch.