darcs

Issue 2667 darcs init failed with "SetCurrentDirectory "..": permission denied"

Title darcs init failed with "SetCurrentDirectory "..": permission denied"
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List ganesh
Assigned To
Topics

Created on 2020-11-20.13:14:58 by ganesh, last changed 2022-04-12.13:19:25 by bfrk.

Messages
msg22516 (view) Author: ganesh Date: 2020-11-20.13:14:52
One off/intermittent error from screened as of the time of submitting this bug:

issue1978 (Darcs3) (PatienceDiff): [Failed]
|
| mkdir future
| + mkdir future
| cd future
| + cd future
| darcs  init
| + darcs init
| ============================= WARNING =============================
| The `darcs-3` semantics is EXPERIMENTAL and new in version 2.16. It is included
| only as a technology preview and we do NOT recommend to use it for any serious
| work. The on-disk format is not yet finalized and we cannot and will not promise
| that later releases will work with darcs-3 repos created with any darcs version
| before 3.0.
| ===================================================================
| darcs.exe: SetCurrentDirectory "..": permission denied (The process cannot access the file because it is being used by another 
process.)
msg22517 (view) Author: ganesh Date: 2020-11-20.13:16:05
(note this was on Windows)
msg22520 (view) Author: bfrk Date: 2020-11-20.16:43:59
While it is unclear what the exact reason for the permission error was 
in this case, it is clear that in general a cd ".." (to seek for a 
possible repository we are in) can well run into IO errors. I have 
submitted patch2119 which does that.
msg22528 (view) Author: bfrk Date: 2020-11-21.16:03:40
> While it is unclear what the exact reason for the permission error was 
> in this case, it is clear that in general a cd ".." (to seek for a 
> possible repository we are in) can well run into IO errors. I have 
> submitted patch2119 which does that.

There is a sentence missing in the middle, saying:

We should catch such IO errors, print a warning with the details, and
move on assuming we are not in a darcs repo.
History
Date User Action Args
2020-11-20 13:14:58ganeshcreate
2020-11-20 13:16:07ganeshsetmessages: + msg22517
2020-11-20 16:44:02bfrksetmessages: + msg22520
2020-11-21 16:03:43bfrksetmessages: + msg22528
2022-04-12 13:19:25bfrksetstatus: unknown -> resolved
priority: bug