D4115: index: rename "nt_*(indexObject *self, ...)" functions to "index_*"
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Mon Aug 6 09:25:15 EDT 2018
martinvonz updated this revision to Diff 9980.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4115?vs=9918&id=9980
REVISION DETAIL
https://phab.mercurial-scm.org/D4115
AFFECTED FILES
mercurial/cext/revlog.c
CHANGE DETAILS
diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c
--- a/mercurial/cext/revlog.c
+++ b/mercurial/cext/revlog.c
@@ -1248,7 +1248,7 @@
/*
* Fully populate the radix tree.
*/
-static int nt_populate(indexObject *self) {
+static int index_populate_nt(indexObject *self) {
int rev;
if (self->ntrev > 0) {
for (rev = self->ntrev - 1; rev >= 0; rev--) {
@@ -1345,7 +1345,7 @@
if (index_init_nt(self) == -1)
return NULL;
- if (nt_populate(self) == -1)
+ if (index_populate_nt(self) == -1)
return NULL;
rev = nt_partialmatch(self->nt, node, nodelen);
@@ -1380,7 +1380,7 @@
self->ntlookups++;
if (index_init_nt(self) == -1)
return NULL;
- if (nt_populate(self) == -1)
+ if (index_populate_nt(self) == -1)
return NULL;
length = nt_shortest(self->nt, node);
if (length == -3)
@@ -1796,7 +1796,7 @@
/*
* Invalidate any trie entries introduced by added revs.
*/
-static void nt_invalidate_added(indexObject *self, Py_ssize_t start)
+static void index_invalidate_added(indexObject *self, Py_ssize_t start)
{
Py_ssize_t i, len = PyList_GET_SIZE(self->added);
@@ -1866,7 +1866,7 @@
nt_delete_node(self->nt, node);
}
if (self->added)
- nt_invalidate_added(self, 0);
+ index_invalidate_added(self, 0);
if (self->ntrev > start)
self->ntrev = (int)start;
}
@@ -1883,7 +1883,7 @@
}
if (self->nt) {
- nt_invalidate_added(self, start - self->length + 1);
+ index_invalidate_added(self, start - self->length + 1);
if (self->ntrev > start)
self->ntrev = (int)start;
}
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list