bzr needs a float (puts encoded URL on lhs of a format)

Bug #380739 reported by Scott James Remnant (Canonical)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

wing-commander libnih% bzr break-lock bzr+ssh://bazaar.launchpad.net/~scott/libnih/trunk/.bzr/branch/lock
bzr: ERROR: exceptions.TypeError: a float is required

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 727, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 922, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 559, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 4475, in run
    control.break_lock()
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 135, in break_lock
    return BzrDir.break_lock(self)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 122, in break_lock
    thing_to_unlock.break_lock()
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 2192, in break_lock
    return self._real_branch.break_lock()
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 115, in break_lock
    self.control_files.break_lock()
  File "/usr/lib/python2.6/dist-packages/bzrlib/lockable_files.py", line 140, in break_lock
    self._lock.break_lock()
  File "/usr/lib/python2.6/dist-packages/bzrlib/lockdir.py", line 343, in break_lock
    if bzrlib.ui.ui_factory.get_boolean("Break %s" % lock_info):
  File "/usr/lib/python2.6/dist-packages/bzrlib/ui/__init__.py", line 162, in get_boolean
    self.prompt(prompt + "? [y/n]: ")
  File "/usr/lib/python2.6/dist-packages/bzrlib/ui/__init__.py", line 221, in prompt
    prompt = prompt % kwargs
TypeError: a float is required

bzr 1.14 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'break-lock', 'bzr+ssh://bazaar.launchpad.net/~scott/libnih/trunk/.bzr/branch/lock']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
  builddeb /usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb [unknown]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [1.14]
  dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [0.1dev]
  git /usr/lib/python2.6/dist-packages/bzrlib/plugins/git [0.3.1]
  gtk /usr/lib/python2.6/dist-packages/bzrlib/plugins/gtk [0.96.0.dev.1]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [unknown]
  rebase /usr/lib/python2.6/dist-packages/bzrlib/plugins/rebase [0.4.4]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [0.5.4]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
zsh: exit 4 bzr break-lock

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

The problem is that "prompt" contains:

Break lock bzr+ssh://bazaar.launchpad.net/%7Escott/libnih/trunk/.bzr/branch/lock
held by <email address hidden> on host crowberry [process #9552]
locked 14 minutes, 23 seconds ago? [y/n]:

IE. bzr has over-encoded a URL, replacing the ~ with %7e, and then used that as the LHS of a string format operator

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.