monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] RFC: Fake IDs


From: Florian Weimer
Subject: Re: [Monotone-devel] RFC: Fake IDs
Date: Wed, 19 Jul 2006 20:30:38 +0200

* Zack Weinberg:

> Typical use case (from cmd_merging.cc - I'm not posting a diff for
> that, as I have a lot of other changes in that file right now):
>
>       // Just pick some unused revid, all that's important is that it not
>       // match the work revision or any ancestors of the base revision.
> -      r_target_id =
> revision_id(hexenc<id>("5432100000000000000000000500000000000000"));
> +      r_target_id = revision_id(fake_id());

Can't you use a tagged union of an SHA-1 hash and a fake (but
guaranteed to be unique within the ssion) ID?  On 64 bit
architectures, this shouldn't result in an observable space
difference.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]