Rev 4730: Escape the to_location for 'bzr switch' in http://bazaar.launchpad.net/~jameinel/bzr/2.0.5-switch-unicode-317778
John Arbash Meinel
john at arbash-meinel.com
Thu Feb 11 17:43:53 GMT 2010
At http://bazaar.launchpad.net/~jameinel/bzr/2.0.5-switch-unicode-317778
------------------------------------------------------------
revno: 4730
revision-id: john at arbash-meinel.com-20100211174326-2j0p9dwcs0wjg2wk
parent: pqm at pqm.ubuntu.com-20100121210215-ikrnfdaws0hldamx
fixes bug(s): https://launchpad.net/bugs/317778
author: Philyoon <philyoon at gmail.com>
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.0.5-switch-unicode-317778
timestamp: Thu 2010-02-11 11:43:26 -0600
message:
Escape the to_location for 'bzr switch'
so that it can handle non-ascii sibling branch names.
Needs tests. Bug #317778
-------------- next part --------------
=== modified file 'bzrlib/builtins.py'
--- a/bzrlib/builtins.py 2009-12-16 22:26:56 +0000
+++ b/bzrlib/builtins.py 2010-02-11 17:43:26 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Canonical Ltd
+# Copyright (C) 2005-2010 Canonical Ltd
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -5382,6 +5382,9 @@
except errors.NotBranchError:
branch = None
had_explicit_nick = False
+ # This path will get joined with another URL, so we want to escape it
+ # early.
+ to_location = urlutils.escape(to_location)
if create_branch:
if branch is None:
raise errors.BzrCommandError('cannot create branch without'
More information about the bazaar-commits
mailing list