Comment 1 for bug 1030343

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 1030343] [NEW] Error when cancelling commit for git branch

On Wed, Aug 01, 2012 at 09:02:52PM -0000, Launchpad Bug Tracker wrote:
> You have been subscribed to a public bug:

> Open Bazaar Explorer, open a git branch, click commit, and click cancel.

> bzr: ERROR: exceptions.AttributeError: 'LocalGitBranch' object has no
> attribute 'control_files'

> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/commit.py", line 733, in closeEvent
> self._save_or_wipe_commit_data()
> File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/commit.py", line 730, in _save_or_wipe_commit_data
> self.save_commit_data()
> File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/commit.py", line 600, in save_commit_data
> if (self.tree.branch.control_files.get_physical_lock_status()
> AttributeError: 'LocalGitBranch' object has no attribute 'control_files'
qbzr should be using self.tree.branch.get_physical_lock_status()
rather than the method on control files.

Cheers,

Jelmer