def ensure_exists(self):
if not self.exists:<EOL><INDENT>msg = "<STR_LIT>"<EOL>raise ValueError(msg % (self.friendly_name, format_path(self.local)))<EOL><DEDENT>
Make sure the local repository exists.

:raises: :exc:`~exceptions.ValueError` when the
         local repository doesn't exist yet.