1.8.x backport r1619380 - diff locally copied dir with props
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Mon, 16 Feb 2015 16:41:08 +0000
This issue is proposed for backport:
* r1619380, r1619393
But the code it introduces contains an assertion that can fail, as Stefan Sperling reported recently[1], on an 'incomplete' directory such as can result from an aborted update.
> assertion "kind == svn_node_dir && (status ==
To reproduce the conditions, svn_wc__db_read_info() needs to return status=incomplete for a directory that exists in the WC at one end of the requested diff's revision range, but doesn't exist in the repo at the other end of the revision range. (That's the case these "local-only" functions are handling.)
Do we want to:
* backport first, then investigate and fix this case at leisure (on trunk)
?
For the command-line client, I think fixing the currently wrong output outweighs the possible crash in obscure 'incomplete' cases, but for GUIs that priority is probably reversed.
As for a fix, I was the one who inserted that code, but I did it by copying it from the similar ..._local_only_file function just above and didn't know I needed to adjust it. I don't know what should be done with it now, so I need someone else to step in. In any case, whatever is done here, please consider keeping ..._local_only_file() in sync with it.
- Julian
[1] <http://colabti.org/irclogger/irclogger_log/svn-dev?date=2015-02-13#l109>
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.