UnboundLocalError pushing to dir with some .bzr dirs. ('dir_to')
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Andrew Bennetts | ||
2.0 |
Fix Released
|
High
|
Andrew Bennetts |
Bug Description
I tried to push to a dir that had this folder structure in it (which I, for some reason was not able to delete from the server):
.bzr/
branch/
lock/
repository/
indices/
There were no other files, just the above folders.
I ran:
/var/www/pdt $ bzr push --use-existing-dir
and go this error:
Using saved push location: ftp://......
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
use_
File "/usr/lib/
create_
File "/usr/lib/
return dir_to.
UnboundLocalError: local variable 'dir_to' referenced before assignment
bzr 1.17 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'push', '--use-
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_ZA.UTF-8'
plugins:
bookmarks /home/garyvdm/
builddeb /home/garyvdm/
bzrtools /home/garyvdm/
colocated /home/garyvdm/
difftools /home/garyvdm/
explorer /home/garyvdm/
extmerge /home/garyvdm/
gtk /home/garyvdm/
launchpad /usr/lib/
loom /home/garyvdm/
netrc_
qbzr /home/garyvdm/
rebase /home/garyvdm/
search /home/garyvdm/
stats /home/garyvdm/
upload /home/garyvdm/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
Related branches
- Martin Pool: Approve
- bzr-core: Pending requested
-
Diff: 86 lines (+27/-12)4 files modifiedNEWS (+4/-0)
bzrlib/branch.py (+3/-10)
bzrlib/push.py (+9/-2)
bzrlib/tests/blackbox/test_push.py (+11/-0)
- Martin Pool: Approve
-
Diff: 41 lines (+20/-0)2 files modifiedNEWS (+14/-0)
bzrlib/push.py (+6/-0)
Changed in bzr: | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: easy |
Changed in bzr: | |
milestone: | none → 2.1.0b4 |
status: | Fix Committed → Fix Released |
It turned out that "easy" was perhaps a bit optimistic (the patch is fairly small, but identifying the correct thing to do was surprisingly tricky), but I have proposed a fix for this now.