bzr break-lock lp:foo fails with TypeError: a float is required
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Martin Pool | ||
Launchpad itself |
Invalid
|
Undecided
|
Unassigned |
Bug Description
bzr break-lock lp:URL
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
TypeError: a float is required
bzr 1.14rc2 on python 2.5.4 (win32)
arguments: ['C:\\Program Files\\
encoding: 'cp1251', fsenc: 'mbcs', lang: 'ru'
plugins:
acad C:\work\
bzrtools C:\Program Files\Bazaar\
difftools C:\work\
fastimport C:\work\
launchpad C:\Program Files\Bazaar\
merge_into C:\work\
qbzr C:\work\
rebase C:\work\
repo_push C:\work\
scmproj C:\work\
x_bit C:\work\
*** 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.
Changed in bzr: | |
importance: | Medium → High |
status: | Confirmed → Fix Committed |
Changed in bzr: | |
milestone: | none → 1.15rc1 |
status: | Fix Committed → Fix Released |
Some analysis. The code in question is:
def prompt(self, prompt, **kwargs):
"""Emit prompt on the CLI."""
prompt = prompt % kwargs
And the `prompt` there has lp url with user name (e.g. ~ru-bzr) where
tilde character (~) encoded as %7e and this is caused formatting error.