Treewidget: Can't revert from the context menu on windows

Bug #479093 reported by Gary van der Merwe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
Fix Released
Critical
Gary van der Merwe

Bug Description

If you try revert from the context menu on window, you get this error:

Could not acquire lock "D:/My Documents/qbzr/wd/qbzr/.bzr/checkout/dirstate": (32, 'CreateFileW', 'The process cannot access the file because it is being used by another process.')

from .bzr.log:

Mon 2009-11-09 13:39:17 +0200
0.078 bzr arguments: [u'qcommit']
1540.781 opening working tree 'D:/My Documents/qbzr/wd/qbzr'
0.109 looking for plugins in D:\My Documents\qbzr\wd
0.203 looking for plugins in C:/Program Files/Bazaar/plugins
0.219 Plugin name qbzr already loaded
0.312 encoding stdout as sys.stdout encoding 'cp437'
0.469 opening working tree 'D:/My Documents/qbzr/wd/qbzr'
3.891 Traceback (most recent call last):
  File "D:\My Documents\qbzr\wd\qbzr\lib\treewidget.py", line 1768, in revert
  File "bzrlib\mutabletree.pyo", line 52, in tree_write_locked
  File "bzrlib\workingtree.pyo", line 2067, in revert
  File "bzrlib\transform.pyo", line 2476, in revert
  File "bzrlib\workingtree_4.pyo", line 1882, in lock_read
  File "bzrlib\dirstate.pyo", line 3039, in lock_read
  File "bzrlib\lock.pyo", line 372, in __init__
  File "bzrlib\lock.pyo", line 357, in _open
LockContention: Could not acquire lock "D:/My Documents/qbzr/wd/qbzr/.bzr/checkout/dirstate": (32, 'CreateFileW', 'The process cannot access the file because it is being used by another process.')

Related branches

Changed in qbzr:
importance: Undecided → Critical
status: New → Confirmed
tags: added: treewidget win32
Revision history for this message
Alexander Belchenko (bialix) wrote :

Gary, what command are you used? Context menu in which dialog? qcommit?

Revision history for this message
Gary van der Merwe (garyvdm) wrote : Re: [Bug 479093] Re: Treewidget: Can't revert from the context menu on windows

> Gary, what command are you used? Context menu in which dialog? qcommit?

Either qcommit or qbrowse

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 479093] Re: Treewidget: Can't revert from the context menu on windows

Gary van der Merwe пишет:
>> Gary, what command are you used? Context menu in which dialog?
> qcommit?
>
> Either qcommit or qbrowse

Confirming the bug while running on win32 w/o TBZR.

Here is log for running bzr -Dlock qcommit:

0.250 bzr arguments: [u'-Dlock', u'qci']
0.297 looking for plugins in C:\work\Bazaar\plugins
0.578 looking for plugins in C:/Program Files/Bazaar/plugins
0.578 Plugin name rebase already loaded
0.688 encoding stdout as sys.stdout encoding 'cp866'
0.969 opening working tree 'C:/work/MyCode/APMoney/logic-bialix'
5.453
LockDir(file:///C:/work/MyCode/APMoney/logic-bialix/.bzr/checkout/lock):
lock_write...
5.453
LockDir(file:///C:/work/MyCode/APMoney/logic-bialix/.bzr/checkout/lock):
peek -> held
5.453
LockDir(file:///C:/work/MyCode/APMoney/logic-bialix/.bzr/checkout/lock):
after locking, info={'nonce': u'u8itdlk2whf0c13l4f3d', 'start_time':
u'1257772293', 'hostname': u'ten', 'pid': u'3028', 'user':
<email address hidden>'}
5.453
LockDir(file:///C:/work/MyCode/APMoney/logic-bialix/.bzr/checkout/lock):
... lock succeeded after 0ms
5.469
LockDir(file:///C:/work/MyCode/APMoney/logic-bialix/.bzr/checkout/lock):
unlocking
5.469
LockDir(file:///C:/work/MyCode/APMoney/logic-bialix/.bzr/checkout/lock):
peek -> held
5.532
LockDir(file:///C:/work/MyCode/APMoney/logic-bialix/.bzr/checkout/lock):
... unlock succeeded after 62ms
5.547 Traceback (most recent call last):
   File "C:\work\Bazaar\plugins\qbzr\lib\treewidget.py", line 1768, in
revert
   File "bzrlib\mutabletree.pyo", line 53, in tree_write_locked
   File "bzrlib\workingtree.pyo", line 2067, in revert
   File "bzrlib\transform.pyo", line 2494, in revert
   File "bzrlib\workingtree_4.pyo", line 1890, in lock_read
   File "bzrlib\dirstate.pyo", line 3039, in lock_read
   File "bzrlib\lock.pyo", line 372, in __init__
   File "bzrlib\lock.pyo", line 357, in _open
LockContention: Could not acquire lock
"C:/work/MyCode/APMoney/logic-bialix/.bzr/checkout/dirstate": (32,
'CreateFileW', 'The process cannot access the file because it is being
used by another process.')

8.266
LockDir(file:///C:/work/MyCode/APMoney/logic-bialix/.bzr/branch/lock):
peek -> not held
8.328 return code 1

Changed in qbzr:
assignee: nobody → Gary van der Merwe (garyvdm)
milestone: none → 0.17
status: Confirmed → 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.