Mercurial > public > mercurial-scm > hg
diff mercurial/debugcommands.py @ 47544:5363610f61ef
dirstate-item: use the `state` property in debugpathcomplete
Ideally we would use narrower property, but this is a good start.
Differential Revision: https://phab.mercurial-scm.org/D10989
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 05 Jul 2021 06:45:32 +0200 |
parents | 1be9bf3669cb |
children | 85ce6ed51b9c |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Mon Jul 05 06:24:51 2021 +0200 +++ b/mercurial/debugcommands.py Mon Jul 05 06:45:32 2021 +0200 @@ -2608,7 +2608,7 @@ files, dirs = set(), set() adddir, addfile = dirs.add, files.add for f, st in pycompat.iteritems(dirstate): - if f.startswith(spec) and st[0] in acceptable: + if f.startswith(spec) and st.state in acceptable: if fixpaths: f = f.replace(b'/', pycompat.ossep) if fullpaths: