Mercurial > hg-stable
diff mercurial/cext/charencode.c @ 47539:84391ddf4c78
dirstate-item: rename the class to DirstateItem
The object is no longer a tuple, so it seems clearer to rename it (and its
associated method)
Differential Revision: https://phab.mercurial-scm.org/D10982
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 04 Jul 2021 22:27:29 +0200 |
parents | d4ba4d51f85f |
children | 83f0e93ec34b |
line wrap: on
line diff
--- a/mercurial/cext/charencode.c Sun Jul 04 02:37:38 2021 +0200 +++ b/mercurial/cext/charencode.c Sun Jul 04 22:27:29 2021 +0200 @@ -223,7 +223,7 @@ PyObject *file_foldmap = NULL; enum normcase_spec spec; PyObject *k, *v; - dirstateTupleObject *tuple; + dirstateItemObject *tuple; Py_ssize_t pos = 0; const char *table; @@ -263,7 +263,7 @@ goto quit; } - tuple = (dirstateTupleObject *)v; + tuple = (dirstateItemObject *)v; if (tuple->state != 'r') { PyObject *normed; if (table != NULL) {