[darcs-users] [issue1042] I wish darcs-2 would do automatic darcs-1-compatibility.

zooko zooko at zooko.com
Sun Aug 31 19:28:23 UTC 2008


On Aug 31, 2008, at 11:33 AM, Ganesh Sittampalam wrote:
>
> I thought the suggestion was for compatibility between darcs 1  
> repos and
> hashed repositories that were still using darcs 1 semantics, rather  
> than
> full-blown darcs-2 repos.


Yes, my idea was to automate this "best practice":

http://wiki.darcs.net/DarcsWiki/DarcsTwo#head- 
ca2e53d78a98ca8e9a613d9021e7563e6476b943

Which means maintain an old-fashioned-format repository and a hashed- 
format repository in sync with one another.

I know I could do all of this with a shell script (and in fact I  
have), except for the part about there being a single URL which acts  
as an old-fashioned-format repository when a darcs-1-executable tries  
to push or pull and acts as a hashed-format repository when a darcs-2- 
executable tries to push or pull.  The current implementation that I  
have requires you to specify which kind of repository you want to  
talk to by the URL (in the example code on the wiki I append "- 
hashedformat" to the hashed-format repository).

So I'm sure that at least part of this is implementable, since it is  
already done by a combination of shell scripts and post-apply  
hooks.  :-)

It occurs to me that even if this could be implemented easily enough  
in Haskell and the two URLs could be unified into one, it would still  
cause a performance reduction, so that's another reason not to do it.

Regards,

Zooko
---
http://allmydata.org -- Tahoe, the Least-Authority Filesystem
http://allmydata.com -- back up all your files for $5/month



More information about the darcs-users mailing list