[darcs-devel] [issue831] wish: consistent ordering of patches

Zooko bugs at darcs.net
Fri May 2 18:54:23 UTC 2008


New submission from Zooko <zooko at zooko.com>:

I wish that a command (possibly just "darcs optimize --reorder") would sort the
patches into some consistent order, such that if I run that command one one
repository, and I run that command on another repository which has exactly the
same set of patches in it, then afterward the two repositories will have exactly
the same order.

This is useful for trac, which assigns a sequence number to each patch, e.g.
http://allmydata.org/trac/darcs-2 , and for the versioning scheme that we use
for allmydata.org "Tahoe" project, where the intermediate releases are numbered
by how many patches were in them since the most recent tag:

http://allmydata.org/source/tahoe/tarballs/

It would also be useful for a new versioning scheme that I am thinking of adding
to Tahoe -- take the hash of the output of the "darcs changes --context" and
include that in the version number, so that if you see two versions with the
same hash code then you know that the two were built from the same version of
the source.

Finally, this consistent sort order could be useful for two programmers who are
"comparing" notes and reading through their changes.

----------
messages: 4494
nosy: beschmi, dagit, tommy, zooko
priority: wishlist
status: unread
title: wish: consistent ordering of patches

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue831>
__________________________________


More information about the darcs-devel mailing list