For two changesets X and Y of the same Mercurial repository, does following condition always hold true:
if X is a parent of Y, then revision(X) < revision(Y)
?
If it holds true, is it by specification or just how it's currently implemented? With other words, can one rely on that condition for future Mercurial releases?
Yes, the revision numbers reflect some topological ordering of the changesets.
The revision numbers you see are simply the order of the revlog entries for the changelog, and revlogs entries are always topologically sorted. Put differently, the revision numbers are handed out in sequence in a given repository, and you cannot pull in a child before you pull in its ancestors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With