[darcs-devel] [issue1556] task: safety refactor to ensure that hashed_inventory is only read once
Eric Kow
bugs at darcs.net
Sun Aug 23 17:57:59 UTC 2009
New submission from Eric Kow <kowey at darcs.net>:
This is from David Roundy's msg5797 on issue992:
Anyhow, this should be combined with a safety refactor which would ensure that
the _darcs/hashed_inventory is only read once: we should store its contents in
the Repository data structure, so we can't accidentally mix two views of a
remote repository during one command. I don't think we currently make this
mistake, but it's troubling that we could.
David goes on to comment on how this would fit into issue992:
Once this refactor is done (which
means that we'd read _darcs/hashed_inventory when first identifying the
Repository), we can easily make darcs read _darcs/inventories/xxx instead, if
the URL has some fancy format that includes a hash value. Or if a file with
that hash isn't present in _darcs/inventories/ we'd look at
_darcs/hashed_inventory to see if that has the right hash. This feature will
enable self-authenticating URLs, albeit URLs that only describe a specific version.
----------
messages: 8413
nosy: dmitry.kurochkin, kowey, simon, thorkilnaur
priority: feature
status: need-implementation
title: task: safety refactor to ensure that hashed_inventory is only read once
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1556>
__________________________________
More information about the darcs-devel
mailing list