comparison mercurial/pathutil.py @ 47759:d7515d29761d stable 5.9rc0

branching: merge default into stable This mark the start of the 5.9 freeze.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 21 Jul 2021 22:52:09 +0200
parents a9f38b144096
children e02f9af7aed1
comparison
equal deleted inserted replaced
47054:29ea3b4c4f62 47759:d7515d29761d
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 )