Mercurial > public > mercurial-scm > hg-stable
diff mercurial/pure/parsers.py @ 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 | 77fce401a2bb |
children | 1a6302427eb9 |
line wrap: on
line diff
--- a/mercurial/pure/parsers.py Sun Jul 04 02:37:38 2021 +0200 +++ b/mercurial/pure/parsers.py Sun Jul 04 22:27:29 2021 +0200 @@ -40,7 +40,7 @@ NONNORMAL = -1 -class dirstatetuple(object): +class DirstateItem(object): """represent a dirstate entry It contains: @@ -530,7 +530,7 @@ if b'\0' in f: f, c = f.split(b'\0') copymap[f] = c - dmap[f] = dirstatetuple(*e[:4]) + dmap[f] = DirstateItem(*e[:4]) return parents @@ -550,7 +550,7 @@ # dirstate, forcing future 'status' calls to compare the # contents of the file if the size is the same. This prevents # mistakenly treating such files as clean. - e = dirstatetuple(e[0], e[1], e[2], -1) + e = DirstateItem(e[0], e[1], e[2], -1) dmap[f] = e if f in copymap: