[darcs-users] Duplicate patch names

zooko at zooko.com zooko at zooko.com
Tue Sep 6 19:52:25 UTC 2005


> It seems pretty easy to get a corrupt darcs repo by using the  
> cvs2darcs script as darcs is using a tuple of date and patch name to  
> generate a unique internal id.
> 
> Would it be easy to detect this and refuse to record the patch? As it  
> seems hard to recover a repo once this has happened?

I'm definitely not defending darcs's behavior in this case, but an easy
work-around is to use the tailor script instead of cvs2darcs.  Tailor uses the
timestamp of the original CVS revision instead of the current time for the
timestamp of the new darcs patch.

Regards,

Zooko




More information about the darcs-users mailing list