comparison mercurial/pathutil.py @ 44626:11f284c8c5e4

pathutil: document that dirs map type implies manifest/dirstate processing
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Fri, 27 Mar 2020 10:39:59 -0400
parents d52e3826cd4b
children 233ee525dcef
comparison
equal deleted inserted replaced
44625:e9e7156a8d6c 44626:11f284c8c5e4
284 284
285 class dirs(object): 285 class dirs(object):
286 '''a multiset of directory names from a set of file paths''' 286 '''a multiset of directory names from a set of file paths'''
287 287
288 def __init__(self, map, skip=None): 288 def __init__(self, map, skip=None):
289 '''
290 a dict map indicates a dirstate while a list indicates a manifest
291 '''
289 self._dirs = {} 292 self._dirs = {}
290 addpath = self.addpath 293 addpath = self.addpath
291 if isinstance(map, dict) and skip is not None: 294 if isinstance(map, dict) and skip is not None:
292 for f, s in pycompat.iteritems(map): 295 for f, s in pycompat.iteritems(map):
293 if s[0] != skip: 296 if s[0] != skip: