On Wed, Nov 16, 2005 at 11:56:50PM -0700, Will wrote: > > Edwin Thomson <[EMAIL PROTECTED]> writes: > > > I'm using darcs on Windows, with Putty's ssh, scp and sftp. Version > > 1.0.3 has been working fine, but when I try to get a repo over ssh > > using 1.0.4 I get the error: > > "darcs.exe: c:/tc/test/_darcs/patches/darcs255a09: removeFile: > > permission denied (Permission denied)" > > > > After this happens, I locally have all the patches, but no working or > > pristine tree. "darcs repair" can then build the pristine tree. If > > the get was partial, the checkpoint file isn't there and the tree > > can't be repaired like this. > > I believe this is caused by darcs trying to delete the temp file used > for SFTP output, while it is still open. IIRC this has been a problem > in various places because deleting an open file works everywhere but > on Windows.
Indeed, in my opinion (mostly speaking from darcs' perspective) the inability to delete open files is Window's least endearing feature. :( > I've sent in a patch that uses readFilePS instead of readFile, which > seems to ensure that the file is closed before it is deleted. Indeed, in my head at least, we have a policy that we shouldn't use readFile (or hGetContents), and I'm not sure how it sneaked in here. I wonder if it would be worth adding some sort of test to the test suite that checks for readFile uses? -- David Roundy http://www.darcs.net _______________________________________________ darcs-users mailing list [email protected] http://www.abridgegame.org/mailman/listinfo/darcs-users
