[darcs-devel] Re: darcs patch: make dangers and recommended use
of "Amend" clearer in...
Ian Lynagh
igloo at earth.li
Thu Dec 15 07:24:23 PST 2005
On Thu, Dec 15, 2005 at 12:32:47PM +0100, Tommy Pettersson wrote:
>
> I have not checked that this faked race condition can happen
> in reality, but since Pull doesn't lock the repo, "anything"
> could happen if the repo is altered concurrently.
2 possible solutions that spring to mind are:
* Put the context in the patch file. Would probably need to be a hash
of some sort to stop it taking too much space.
* Whenever you do anything that alters patches on disk, move all patches
from _darcs/patches/last_date/ to _darcs/patches/now/ and
update a file _darcs/patches/when accordingly.
Thanks
Ian
More information about the darcs-devel
mailing list