@@ -102,8 +102,8 @@ def extract_repos(
102102 if "name" not in conf :
103103 conf ["name" ] = repo
104104
105- if "dir " not in conf :
106- conf ["dir " ] = expand_dir (
105+ if "path " not in conf :
106+ conf ["path " ] = expand_dir (
107107 pathlib .Path (expand_dir (pathlib .Path (directory ), cwd = cwd ))
108108 / conf ["name" ],
109109 cwd ,
@@ -301,10 +301,10 @@ def detect_duplicate_repos(
301301 dupes : list [ConfigDictTuple ] = []
302302
303303 repo_dirs = {
304- pathlib .Path (repo ["dir " ]).parent / repo ["name" ]: repo for repo in config1
304+ pathlib .Path (repo ["path " ]).parent / repo ["name" ]: repo for repo in config1
305305 }
306306 repo_dirs_2 = {
307- pathlib .Path (repo ["dir " ]).parent / repo ["name" ]: repo for repo in config2
307+ pathlib .Path (repo ["path " ]).parent / repo ["name" ]: repo for repo in config2
308308 }
309309
310310 for repo_dir , repo in repo_dirs .items ():
@@ -347,19 +347,19 @@ def in_dir(
347347
348348def filter_repos (
349349 config : list ["ConfigDict" ],
350- dir : t .Union [pathlib .Path , t .Literal ["*" ], str , None ] = None ,
350+ path : t .Union [pathlib .Path , t .Literal ["*" ], str , None ] = None ,
351351 vcs_url : t .Union [str , None ] = None ,
352352 name : t .Union [str , None ] = None ,
353353) -> list ["ConfigDict" ]:
354354 """Return a :py:obj:`list` list of repos from (expanded) config file.
355355
356- dir , vcs_url and name all support fnmatch.
356+ path , vcs_url and name all support fnmatch.
357357
358358 Parameters
359359 ----------
360360 config : dict
361361 the expanded repo config in :py:class:`dict` format.
362- dir : str, Optional
362+ path : str, Optional
363363 directory of checkout location, fnmatch pattern supported
364364 vcs_url : str, Optional
365365 url of vcs remote, fn match pattern supported
@@ -373,12 +373,12 @@ def filter_repos(
373373 """
374374 repo_list : list ["ConfigDict" ] = []
375375
376- if dir :
376+ if path :
377377 repo_list .extend (
378378 [
379379 r
380380 for r in config
381- if fnmatch .fnmatch (str (pathlib .Path (r ["dir " ]).parent ), str (dir ))
381+ if fnmatch .fnmatch (str (pathlib .Path (r ["path " ]).parent ), str (path ))
382382 ]
383383 )
384384
0 commit comments