original_docstring: Return the path's associated groups.
docstring: Return the path's associated groups.
docstring_tokens: Return the path ' s associated groups .
code: def which_groups(self, path):
      "Return the path's associated groups."
      groups = []
      seen = False
      for group, pattern, exclude_pattern, ignore, repos_params in self._group_re:
        if ignore and seen:
          continue
        match = pattern.match(path)
        if match:
          if exclude_pattern and exclude_pattern.match(path):
            continue
          seen = True
          params = repos_params.copy()
          params.update(match.groupdict())
          groups.append((group, params))
      if not groups:
        groups.append((None, self._global_params))
      return groups
code_tokens: def which_groups ( self , path ) : groups = [ ] seen = False for group , pattern , exclude_pattern , ignore , repos_params in self . _group_re : if ignore and seen : continue match = pattern . match ( path ) if match : if exclude_pattern and exclude_pattern . match ( path ) : continue seen = True params = repos_params . copy ( ) params . update ( match . groupdict ( ) ) groups . append ( ( group , params ) ) if not groups : groups . append ( ( None , self . _global_params ) ) return groups
short_docstring: Return the path's associated groups.
short_docstring_tokens: Return the path ' s associated groups .
comment: "Return the path's associated groups."