[Updated] D12176: revlog: do not compute node location by hand in index_invalidate_added
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Tue Feb 15 14:49:34 UTC 2022
Closed by commit rHGd9a7131648a3: revlog: do not compute node location by hand in index_invalidate_added (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12176?vs=32175&id=32205
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12176/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12176
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
@@ -2734,8 +2734,10 @@
if (i < 0)
return;
- for (i = start; i < len; i++)
- nt_delete_node(&self->nt, index_deref(self, i) + 32);
+ for (i = start; i < len; i++) {
+ const char *node = index_node(self, i);
+ nt_delete_node(&self->nt, node);
+ }
self->new_length = start - self->length;
}
To: pacien, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220215/9fcead4c/attachment-0002.html>
More information about the Mercurial-patches
mailing list