reconfiguring lightweight checkout with remote repo to branch breaks

Bug #332194 reported by Jelmer Vernooij
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Martin Pool

Bug Description

charis:~/tmp/bzr.dev% bzr info
Lightweight checkout (format: 1.6 or 1.6.1-rich-root or 1.9 or 1.9-rich-root or dirstate or dirstate-tags or pack-0.92 or rich-root or rich-root-pack)
Location:
  light checkout root: .
   checkout of branch: http://bazaar-vcs.org/bzr/bzr.dev/
    shared repository: http://bazaar-vcs.org/bzr/

Related branches:
    push branch:
  parent branch: http://bazaar-ng.org/bzr/bzr.dev/

bzr: ERROR: exceptions.AttributeError: 'Reconfigure' object has no attribute 'local_repository'

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 896, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 842, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 542, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 5013, in run
    reconfiguration = reconfigure.Reconfigure.to_standalone(directory)
  File "/usr/lib/python2.5/site-packages/bzrlib/reconfigure.py", line 138, in to_standalone
    reconfiguration._set_use_shared(use_shared=False)
  File "/usr/lib/python2.5/site-packages/bzrlib/reconfigure.py", line 190, in _set_use_shared
    if self.local_repository is None:
AttributeError: 'Reconfigure' object has no attribute 'local_repository'

bzr 1.12 on python 2.5.4 (linux2)
arguments: ['/usr/bin/bzr', 'reconfigure', '--standalone']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: 'C'
plugins:
  builddeb /home/jelmer/.bazaar/plugins/builddeb [2.1dev]
  bzrtools /home/jelmer/.bazaar/plugins/bzrtools [1.12]
  cia /home/jelmer/.bazaar/plugins/cia [1.0dev]
  cvsps_import /usr/lib/python2.5/site-packages/bzrlib/plugins/cvsps_import [unknown]
  dbus /home/jelmer/.bazaar/plugins/dbus [unknown]
  email /usr/lib/python2.5/site-packages/bzrlib/plugins/email [unknown]
  etckeeper /usr/lib/python2.5/site-packages/bzrlib/plugins/etckeeper [unknown]
  gtk /home/jelmer/.bazaar/plugins/gtk [0.96.0.dev.1]
  hg /home/jelmer/.bazaar/plugins/hg [unknown]
  jelmer /home/jelmer/.bazaar/plugins/jelmer [unknown]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  loom /usr/lib/python2.5/site-packages/bzrlib/plugins/loom [1.4dev]
  netrc_credential_store /usr/lib/python2.5/site-packages/bzrlib/plugins/netrc_credential_store [unknown]
  pqm /usr/lib/python2.5/site-packages/bzrlib/plugins/pqm [1.3]
  qbzr /home/jelmer/.bazaar/plugins/qbzr [0.9.6dev]
  rebase /home/jelmer/.bazaar/plugins/rebase [0.4.3dev]
  stats /usr/lib/python2.5/site-packages/bzrlib/plugins/stats [unknown]
  svn /home/jelmer/.bazaar/plugins/svn [0.5.3dev]
  upload /usr/lib/python2.5/site-packages/bzrlib/plugins/upload [0.1]
  xmloutput /home/jelmer/.bazaar/plugins/xmloutput [0.9dev]
*** 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.

The attached patch fixes this issue, but it needs a test.

Related branches

Revision history for this message
Jelmer Vernooij (jelmer) wrote :
Revision history for this message
Martin Pool (mbp) wrote :

The patch looks reasonable and trivial so I'll submit it. Thanks.

summary: - reconfiguring lightweight checkout with remote repo to branch braks
+ reconfiguring lightweight checkout with remote repo to branch breaks
Changed in bzr:
assignee: nobody → Martin Pool (mbp)
importance: Undecided → Medium
status: New → In Progress
milestone: none → 1.17
status: In Progress → Fix Committed
Martin Pool (mbp)
Changed in bzr:
status: Fix Committed → Fix Released
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.