Rev 2605: Fix unbound variable in _create_prefix (thanks vila) in http://sourcefrog.net/bzr/trivial
Martin Pool
mbp at sourcefrog.net
Thu Jul 12 09:55:56 BST 2007
At http://sourcefrog.net/bzr/trivial
------------------------------------------------------------
revno: 2605
revision-id: mbp at sourcefrog.net-20070712085555-qfizepdt97bqubek
parent: pqm at pqm.ubuntu.com-20070712075207-pgz7ur4rxmklmrxr
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: trivial
timestamp: Thu 2007-07-12 18:55:55 +1000
message:
Fix unbound variable in _create_prefix (thanks vila)
modified:
bzrlib/builtins.py builtins.py-20050830033751-fc01482b9ca23183
=== modified file 'bzrlib/builtins.py'
--- a/bzrlib/builtins.py 2007-07-12 03:55:39 +0000
+++ b/bzrlib/builtins.py 2007-07-12 08:55:55 +0000
@@ -741,7 +741,6 @@
"\nYou may supply --create-prefix to create all"
" leading parent directories."
% location)
-
_create_prefix(to_transport)
# Now the target directory exists, but doesn't have a .bzr
@@ -3751,9 +3750,9 @@
while True:
new_transport = cur_transport.clone('..')
if new_transport.base == cur_transport.base:
- raise errors.BzrCommandError("Failed to create path"
- " prefix for %s."
- % location)
+ raise errors.BzrCommandError(
+ "Failed to create path prefix for %s."
+ % cur_transport.base)
try:
new_transport.mkdir('.')
except errors.NoSuchFile:
@@ -3761,12 +3760,12 @@
cur_transport = new_transport
else:
break
-
# Now we only need to create child directories
while needed:
cur_transport = needed.pop()
cur_transport.ensure_base()
+
# Compatibility
merge = _merge_helper
More information about the bazaar-commits
mailing list