darcs

Issue 2303 failure to create patch index results in: "darcs: /repo/filecache-tmp-3: rename: unsatisified constraints (Directory not empty )

Title failure to create patch index results in: "darcs: /repo/filecache-tmp-3: rename: unsatisified constraints (Directory not empty )
Priority Status given-up
Milestone Resolved in
Superseder Nosy List markstos
Assigned To
Topics PatchIndex

Created on 2013-02-17.01:09:24 by markstos, last changed 2017-07-31.00:54:02 by gh.

Messages
msg16669 (view) Author: markstos Date: 2013-02-17.01:09:22
1. Summarise the issue (what were doing, what went wrong?)

- Create a darcs repo with a patch index
- chmod the patch index files in _darcs/patch_index to be not readable
- Run a command that would update the cache, like darcs oblit

The command files like this:

"darcs: /repo/filecache-tmp-3: rename: unsatisified constraints 
(Directory not empty)

2. What behaviour were you expecting instead?

The diagnostic message should explain the real problem instead, 
something like:

"Creating patch index failed: _darcs/patch_index/foo is not writable"

3. What darcs version are you using? (Try: darcs --exact-version)

    2.9.7 (+ 49 patches)

I plan to contribute a failing test for this shortly.
msg16671 (view) Author: markstos Date: 2013-02-17.01:20:06
I've posted a failing test for this to the patch tracker, and also my Hub 
repo:

http://hub.darcs.net/markstos/darcs-screened/patch/20130217011607-8a0ef
History
Date User Action Args
2013-02-17 01:09:24markstoscreate
2013-02-17 01:20:07markstossetstatus: needs-testcase -> needs-implementation
messages: + msg16671
2017-07-31 00:54:02ghsetstatus: needs-implementation -> given-up