Issue #1778 duplicate

[Error 32] The process cannot access the file while saving settings

Anonymous created an issue
** Mercurial version (2.0.2).  TortoiseHg version (2.2.2)
** Command: --nofork repoconf
** CWD: C:\Dev\Acme-Coyote\control-web-services
** Encoding: cp1252
** Extensions loaded: 
** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)]
** Windows version: (6, 1, 7601, 2, 'Service Pack 1')
** Processor architecture: x64
** Qt-4.7.4 PyQt-4.8.6
Traceback (most recent call last):
  File "tortoisehg\hgqt\settings.pyo", line 941, in accept
  File "tortoisehg\hgqt\settings.pyo", line 919, in applyChanges
  File "tortoisehg\hgqt\settings.pyo", line 1269, in applyChanges
  File "tortoisehg\util\wconfig.pyo", line 249, in writefile
  File "mercurial\util.pyo", line 788, in close
  File "mercurial\windows.pyo", line 292, in rename
  File "mercurial\win32.pyo", line 426, in unlink
WindowsError: [Error 32] The process cannot access the file because it is being used by another process

Comments (10)

  1. Anonymous

    I just got a very similar error. What I did:

    1. Install TortoiseHg for the first time on a new machine.

    2. Right-click to get to the workbench.

    3. Go to File -> Settings.

    4. Enter a username in the commit pane.

    5. Click OK.

    ** Mercurial version (2.1.1).  TortoiseHg version (2.3.1)
    ** Command: --nofork workbench
    ** CWD: X:\Tools\Mercurial
    ** Encoding: cp1252
    ** Extensions loaded: 
    ** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)]
    ** Windows version: (6, 1, 7601, 2, 'Service Pack 1')
    ** Processor architecture: x64
    ** Qt-4.7.4 PyQt-4.8.6
    Traceback (most recent call last):
      File "tortoisehg\hgqt\settings.pyo", line 988, in accept
      File "tortoisehg\hgqt\settings.pyo", line 966, in applyChanges
      File "tortoisehg\hgqt\settings.pyo", line 1319, in applyChanges
      File "tortoisehg\util\wconfig.pyo", line 249, in writefile
      File "mercurial\util.pyo", line 784, in close
      File "mercurial\windows.pyo", line 288, in rename
    WindowsError: [Error 32] The process cannot access the file because it is being used by another process
    
  2. tim_kuehn

    I have the same issue when I try t save changes to a repo - I go the following when changing the "Monitor Repo Changes" to localonly.

    ** Mercurial version (2.7).  TortoiseHg version (2.9)
    ** Command: 
    ** CWD: C:\Windows\system32
    ** Encoding: cp1252
    ** Extensions loaded: 
    ** Python version: 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
    ** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
    ** Processor architecture: x64
    ** Qt-4.8.4 PyQt-4.10.2 QScintilla-2.7.2
    Traceback (most recent call last):
      File "tortoisehg\hgqt\settings.pyo", line 1227, in accept
      File "tortoisehg\hgqt\settings.pyo", line 1205, in applyChanges
      File "tortoisehg\hgqt\settings.pyo", line 1625, in applyChanges
      File "tortoisehg\util\wconfig.pyo", line 253, in writefile
      File "mercurial\util.pyo", line 862, in close
      File "mercurial\windows.pyo", line 294, in rename
    WindowsError: [Error 32] The process cannot access the file because it is being used by another process
    
  3. tim_kuehn

    I get this when I try to save the "push after commit" directory to the repo:

    ** Mercurial version (2.7).  TortoiseHg version (2.9)
    ** Command: 
    ** CWD: C:\Windows\system32
    ** Encoding: cp1252
    ** Extensions loaded: 
    ** Python version: 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
    ** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
    ** Processor architecture: x64
    ** Qt-4.8.4 PyQt-4.10.2 QScintilla-2.7.2
    Traceback (most recent call last):
      File "tortoisehg\hgqt\commit.pyo", line 1198, in savePushAfter
      File "tortoisehg\util\wconfig.pyo", line 253, in writefile
      File "mercurial\util.pyo", line 862, in close
      File "mercurial\windows.pyo", line 294, in rename
    WindowsError: [Error 32] The process cannot access the file because it is being used by another process
    
  4. Log in to comment