[MERGE/RFC] Add dotted-decimal revision numbers to merge_sorted output

Aaron Bentley aaron.bentley at utoronto.ca
Thu Sep 7 03:43:07 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Collins wrote:
> Hi,
>     This patch adds dotted decimal revision numbers to the output of
> merge_sorted. I haven't profiled it carefully, but it should be
> low-overhead. I've kept compatability, but we might want to just make it
> always do this and deprecate getting output without the revision
> numbers.
> 
> The revision numbers are assigned like CVS:
> 
> For a revision with number X, each child of X gets a revision number of
> X.SEQUENCE.1. IFF SEQUENCE is 0, then the childs revision number becomes
> X[:-1] + (X[-1] + 1) instead, which is what gives us the mainline.

Sorry if I'm being thick, but this explanation doesn't make anything
clear to me.  How is SEQUENCE calculated?  Is X an integer?  If so, what
does X[:-1] mean?  Are these values stable as new children of X are
discovered?

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE/4c60F+nu1YWqI0RAoaEAJ43tIfN5tYRXpt1N5qD+ufSe4MVoACfUHJR
weMO7e0vWZkcWFzpzG6ARLA=
=gs+a
-----END PGP SIGNATURE-----




More information about the bazaar mailing list