On 2022-09-18 14:40:36 -0400, James McCoy wrote:
> You're saying that the change you were preparing was lost, but nothing
> was actually changed in svn, right?

Yes. What happens is that svn retrieves the current property value
from the server, puts it in a file "/tmp/svn-prop.tmp" and runs an
editor on this file. The user modifies this file and quits the
editor. Then svn normally updates this property on the server
(from the modified svn-prop.tmp) and removes this temporary file.
The issue is that svn removes this file even when the update fails.

Note: I'm using the "svn+ssh" scheme. I don't know whether this bug
also occurs with the https scheme (I cannot try).

The issue can be reproduced by creating a wrapper script to ssh and
using

  SVN_SSH=/path/to/this/script svn propedit ...

Before quitting the editor, change this script to "exit 1" in order
to simulate a ssh failure.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to