Issue #409 new

SubversionException: 423 Locked

FlorianGeorge
created an issue

When committing something that changes a file that is locked on the SVN Server, the following Crash Log appears:

    #!python
    ** Mercurial version (2.7.1).  TortoiseHg version (2.9.1)
    ** Command: --nofork workbench
    ** CWD: V:\Development
    ** Encoding: cp1252
    ** Extensions loaded: hgsubversion, rebase
    ** 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\thread.pyo", line 283, in run
      File "tortoisehg\util\hglib.pyo", line 879, in dispatch
      File "mercurial\dispatch.pyo", line 778, in _dispatch
      File "mercurial\dispatch.pyo", line 549, in runcommand
      File "mercurial\dispatch.pyo", line 869, in _runcommand
      File "mercurial\dispatch.pyo", line 840, in checkargs
      File "mercurial\dispatch.pyo", line 775, in <lambda>
      File "mercurial\util.pyo", line 506, in check
      File "mercurial\extensions.pyo", line 143, in wrap
      File "mercurial\util.pyo", line 506, in check
      File "V:\.......\hgsubversion\hgsubversion\wrappers.py", line 625, in generic
      File "mercurial\util.pyo", line 506, in check
      File "mercurial\commands.pyo", line 4694, in push
      File "V:\.......\hgsubversion\hgsubversion\svnrepo.py", line 81, in wrapper
      File "V:\.......\hgsubversion\hgsubversion\svnrepo.py", line 100, in push
      File "V:\.......\hgsubversion\hgsubversion\wrappers.py", line 264, in push
      File "V:\.......\hgsubversion\hgsubversion\pushmod.py", line 201, in commit
      File "V:\.......\hgsubversion\hgsubversion\svnwrap\svn_swig_wrapper.py", line 439, in commit
      File "libsvn\delta.pyo", line 498, in svn_delta_path_driver
      File "V:\.......\hgsubversion\hgsubversion\svnwrap\svn_swig_wrapper.py", line 435, in driver_cb
      File "libsvn\delta.pyo", line 447, in close_file
      File "libsvn\delta.pyo", line 655, in svn_delta_editor_invoke_close_file
    SubversionException: ("Server sent unexpected return value (423 Locked) in response to PUT request for '/svn/....../Lib/abc123.cpp'", 175002)

I. I don't know whether this should open the crash reporter. The line

("Server sent unexpected return value (423 Locked) in response to PUT request for '/svn/....../Lib/abc123.cpp'", 175002)

was written in red into the Output Log, that should be enough, as it's obvious what caused the issue.

II. This should not result in the whole operation being canceled. What I currently have to do after this error is this:

a) Open TortoiseSVN -> Repo Browser -> Break Lock of the file(s) that caused the issue.

b) Update to the latest commit that was "accepted" by the SVN.

c) Rebase the whole batch of commits I was committing on top of the new tip.

d) Hit "commit" again.

III. I wish there would just be a prompt "Break Lock? Yes/No" that would allow the whole operation to continue or abort based on the choice.

Comments (0)

  1. Log in to comment