encoding set error

Bug #751550 reported by Alexander Popov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QBzr
Confirmed
Medium
Unassigned

Bug Description

Win7. in gui. commit->diff-> set encoding-> cp1251 -> error message
bzr: ERROR: bzrlib.errors.ReadOnlyError: A write attempt was made in a read only transaction on LockableFiles(lock, file:///C:/a_popov/projects/cl/delphi_opengl_opencl_image_mem/.bzr/branch/)

Traceback (most recent call last):
  File "C:/Program Files (x86)/Bazaar/plugins\qbzr\lib\encoding_selector.py", line 73, in _encodingChanged
  File "C:/Program Files (x86)/Bazaar/plugins\qbzr\lib\diffwindow.py", line 178, in on_right_encoding_changed
  File "C:/Program Files (x86)/Bazaar/plugins\qbzr\lib\util.py", line 625, in get_set_encoding
  File "bzrlib\config.pyo", line 1055, in set_user_option
  File "bzrlib\config.pyo", line 1266, in set_option
  File "bzrlib\branch.pyo", line 2482, in lock_write
  File "bzrlib\lockable_files.pyo", line 182, in lock_write
ReadOnlyError: A write attempt was made in a read only transaction on LockableFiles(lock, file:///C:/a_popov/projects/cl/delphi_opengl_opencl_image_mem/.bzr/branch/)

bzr 2.3.1 on python 2.6.6 (win32)
arguments: ['C:\\Program Files (x86)\\Bazaar\\tbzrcommand.exe', '--command=commit', '--dir=C:\\a_popov\\projects\\cl\\delphi_opengl_opencl_image_mem']
encoding: 'cp1251', fsenc: 'mbcs', lang: 'RU'
plugins:
  bzrtools C:\Program Files (x86)\Bazaar\plugins\bzrtools [2.3.1]
  colo C:\Program Files (x86)\Bazaar\plugins\colo [0.2.1]
  explorer C:\Program Files (x86)\Bazaar\plugins\explorer [1.1.2]
  fastimport C:\Program Files (x86)\Bazaar\plugins\fastimport [0.10.0]
  launchpad C:\Program Files (x86)\Bazaar\plugins\launchpad [2.3.1]
  loom C:\Program Files (x86)\Bazaar\plugins\loom [2.2.1dev]
  netrc_credential_store C:\Program Files (x86)\Bazaar\plugins\netrc_credential_store [2.3.1]
  news_merge C:\Program Files (x86)\Bazaar\plugins\news_merge [2.3.1]
  pipeline C:\Program Files (x86)\Bazaar\plugins\pipeline [1.1.0]
  qbzr C:\Program Files (x86)\Bazaar\plugins\qbzr [0.20.0]
  rewrite C:\Program Files (x86)\Bazaar\plugins\rewrite [0.6.2dev]
  svn C:\Program Files (x86)\Bazaar\plugins\svn [1.0.5dev]
  upload C:\Program Files (x86)\Bazaar\plugins\upload [1.0.0]
  xmloutput C:\Program Files (x86)\Bazaar\plugins\xmloutput [0.8.7.dev]

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 751550] [NEW] encoding set error

Alex пишет:
> Public bug reported:
>
> Win7. in gui. commit->diff-> set encoding-> cp1251 -> error message
> bzr: ERROR: bzrlib.errors.ReadOnlyError: A write attempt was made in a read only transaction on LockableFiles(lock, file:///C:/a_popov/projects/cl/delphi_opengl_opencl_image_mem/.bzr/branch/)

I can't reproduce this error with small changes diff. But I suspect you
might got it while the Diff still loading and you changing the encoding.
Can you confirm this? Can you reproduce it every time or only occasionally?

--
All the dude wanted was his rug back

Revision history for this message
Alexander Belchenko (bialix) wrote :

I think the best we can do in this situation is just ignore the lock error and go on without saving the value.

Revision history for this message
Alexander Belchenko (bialix) wrote :

Ditto for new support for tab width.

Changed in qbzr:
status: New → Confirmed
importance: Undecided → Medium
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.