[Top][All Lists]
[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.
- [Monotone-devel] Re: RFC: Fake IDs, (continued)
- Re: [Monotone-devel] Re: RFC: Fake IDs, Jack Lloyd, 2006/07/19
- [Monotone-devel] Re: RFC: Fake IDs, Graydon Hoare, 2006/07/18
- Re: [Monotone-devel] Re: RFC: Fake IDs, Zack Weinberg, 2006/07/18
- Re: [Monotone-devel] Re: RFC: Fake IDs, Nathaniel Smith, 2006/07/19
- [Monotone-devel] Re: RFC: Fake IDs, Graydon Hoare, 2006/07/19
- Re: [Monotone-devel] Re: RFC: Fake IDs, Nathaniel Smith, 2006/07/19
- Re: [Monotone-devel] Re: RFC: Fake IDs, Nathaniel Smith, 2006/07/24
Re: [Monotone-devel] RFC: Fake IDs,
Florian Weimer <=