[darcs-users] darcs repository corrupted

Jorey Bump list at joreybump.com
Sun Apr 15 13:13:08 UTC 2007


Ruben Zilibowitz wrote:
> I originally posted this to the haskell-cafe mailing list, but perhaps 
> this is a better place for it.
> 
> What does it mean if I'm trying to check out a darcs repository and I 
> get the following error?
> 
> darcs: ./.DS_Store: openBinaryFile: does not exist (No such file or 
> directory)
> 
> .DS_Store files ought to be filtered out by the default boring file. I 
> don't know how one got into the repository and started causing this error.

It's an evil Mac OSX behaviour I discovered in horror after I gave a Mac 
user r/w access to my network share. It dumped one of these useless 
files in every directory he visited. It contains some kind of display 
configuration information, which makes it even more evil on network 
shares, even (especially?) if you're a Mac user (I'm not, so don't take 
my word for it). Windows does something similar with those thumbnail 
files and sometimes desktop.ini.

> Is there some way to repair the repository?
> darcs repair doesn't seem to help.

Have you tried removing the file from being tracked, using ordinary means?

  darcs remove .DS_Store

To prevent it in the future, add a cleanup routine to your project's 
Makefile that you can run before committing a patch.




More information about the darcs-users mailing list