Mon, 23 Jul 2007 20:44:08 -0500 revlog: some codingstyle cleanups
Matt Mackall <mpm@selenic.com> [Mon, 23 Jul 2007 20:44:08 -0500] rev 4980
revlog: some codingstyle cleanups
Mon, 23 Jul 2007 20:44:08 -0500 revlog: add a magic null revision to our index
Matt Mackall <mpm@selenic.com> [Mon, 23 Jul 2007 20:44:08 -0500] rev 4979
revlog: add a magic null revision to our index We expand our index by one entry so that index[nullrev] points to a unique entry, the null revision. This naturally eliminates numerous extra tests in the performance-sensitive index access functions, most of which are now trivial again. Adding new entries is now done with insert(-1, e) rather than append(e).
(0) -3000 -1000 -300 -100 -30 -10 -2 +2 +10 +30 +100 +300 tip