diff mercurial/pathutil.py @ 47541:a9f38b144096

dirstate-item: use the properties in pathutil Differential Revision: https://phab.mercurial-scm.org/D10985
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 05 Jul 2021 03:57:40 +0200
parents 5d483e3bb60e
children e02f9af7aed1
line wrap: on
line diff
--- a/mercurial/pathutil.py	Mon Jul 05 03:57:11 2021 +0200
+++ b/mercurial/pathutil.py	Mon Jul 05 03:57:40 2021 +0200
@@ -323,7 +323,7 @@
         addpath = self.addpath
         if isinstance(map, dict) and skip is not None:
             for f, s in pycompat.iteritems(map):
-                if s[0] != skip:
+                if s.state != skip:
                     addpath(f)
         elif skip is not None:
             raise error.ProgrammingError(