'Fetch into a target repository.
:param path: Path to fetch from (as bytestring)
:param target: Target repository to fetch into
:param determine_wants: Optional function determine what refs
to fetch. Receives dictionary of name->sha, should return
list of shas to fetch. Defaults to all shas.
:param progress: Optional progress function
:return: Dictionary with all remote refs (not just those fetched)'

def fetch(self, path, target, determine_wants=None, progress=None):

    with self._open_repo(path) as r:
        return r.fetch(target, determine_wants=determine_wants, progress=progress)
