[darcs-users] [issue861] make hash matching work for the new hashed repo patch file names
Lele Gaifax
lele at nautilus.homeip.net
Sun May 18 19:05:20 UTC 2008
On Sun, 18 May 2008 11:45:05 -0700
Ben Coburn <btcoburn at silicodon.net> wrote:
> On May 18, 2008, at 10:45, Lele Gaifax wrote:
> > Now, I am *not* sure, but AFAIK the actual contents of a given patch
> > *may* change, when darcs commutes it with other patches, and thus
> > both the length and the sha256 checksum is not constant, and cannot
> > be used to identify a patch.
>
> Even so, I think one could always go the long way around: Load the
> patch file directly. Compute the old-style hash. Then, proceed with
> matching as usual.
Uhm, but AFAICT that is still imprecise: I dunno know if darcs
*removes* the old patch file, once it commutes it... so you could be
asking for a patchfile that it's not in the inventory anymore...
But, why/when would you find useful using the "on disk file name" to
select a given patch?
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at nautilus.homeip.net | -- Fortunato Depero, 1929.
More information about the darcs-users
mailing list