At http://bazaar.launchpad.net/~jameinel/bzr/2.0.5-switch-unicode-317778

------------------------------------------------------------
revno: 4730
revision-id: [email protected]
parent: [email protected]
fixes bug(s): https://launchpad.net/bugs/317778
author: Philyoon <[email protected]>
committer: John Arbash Meinel <[email protected]>
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
=== 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'

-- 
bazaar-commits mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/bazaar-commits

Reply via email to