[darcs-devel] [issue1505] Smarter Context Files
Max Battcher
bugs at darcs.net
Fri Jul 24 21:43:59 UTC 2009
New submission from Max Battcher <me at worldmaker.net>:
Whereas hashed and darcs-2 repositories have means for resolving lazy
patches via _darcs/prefs/sources and caches therein, it should be
possible for darcs to use these existing sources to search for missing
patches that are mentioned in context files.
It appears that darcs already attempts this (failing in get_extra), but
the current context format is lacking a key piece of information
necessary for patch lookup in a hashed or darcs-2 repository: the patch
object hash. A simple comparison between a _darcs/hashed_inventory and a
current context file shows the only key difference between the lack of
"Hash:" lines.
It would be nice for darcs to support a --hashed-context that contains
the hash information. It may even be smart to make this the default form
of context, should it be backwards compatible (in which case the
existing context may be --old-context), or for the next repository version.
----------
messages: 7989
nosy: dmitry.kurochkin, kowey, me, simon, thorkilnaur
status: unread
title: Smarter Context Files
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1505>
__________________________________
More information about the darcs-devel
mailing list