original_docstring: 
          Checkout the targeted branches/tags from the git_pillar remotes
          
docstring: Checkout the targeted branches/tags from the git_pillar remotes
docstring_tokens: Checkout the targeted branches / tags from the git_pillar remotes
code: def checkout(self):
          '''
          Checkout the targeted branches/tags from the git_pillar remotes
          '''
          self.pillar_dirs = {}
          for repo in self.remotes:
              cachedir = self.do_checkout(repo)
              if cachedir is not None:
                  # Figure out which environment this remote should be assigned
                  if repo.env:
                      env = repo.env
                  else:
                      base_branch = self.opts['{0}_base'.format(self.role)]
                      env = 'base' if repo.branch == base_branch else repo.branch
                  self.pillar_dirs[cachedir] = env
code_tokens: def checkout ( self ) : self . pillar_dirs = { } for repo in self . remotes : cachedir = self . do_checkout ( repo ) if cachedir is not None : if repo . env : env = repo . env else : base_branch = self . opts [ '{0}_base' . format ( self . role ) ] env = 'base' if repo . branch == base_branch else repo . branch self . pillar_dirs [ cachedir ] = env
short_docstring: Checkout the targeted branches/tags from the git_pillar remotes
short_docstring_tokens: Checkout the targeted branches / tags from the git_pillar remotes
comment: '''
          Checkout the targeted branches/tags from the git_pillar remotes
          '''$SEP$# Figure out which environment this remote should be assigned