comparison 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
comparison
equal deleted inserted replaced
47540:1a6302427eb9 47541:a9f38b144096
321 """ 321 """
322 self._dirs = {} 322 self._dirs = {}
323 addpath = self.addpath 323 addpath = self.addpath
324 if isinstance(map, dict) and skip is not None: 324 if isinstance(map, dict) and skip is not None:
325 for f, s in pycompat.iteritems(map): 325 for f, s in pycompat.iteritems(map):
326 if s[0] != skip: 326 if s.state != skip:
327 addpath(f) 327 addpath(f)
328 elif skip is not None: 328 elif skip is not None:
329 raise error.ProgrammingError( 329 raise error.ProgrammingError(
330 b"skip character is only supported with a dict source" 330 b"skip character is only supported with a dict source"
331 ) 331 )