def repository(self): '''Get a `mozversioncontrol.Repository` object for the top source directory.''' # We try to obtain a repo using the configured VCS info first. # If we don't have a configure context, fall back to auto-detection. try: return get_repository_from_build_config(self) except BuildEnvironmentNotFoundException: pass return get_repository_object(self.topsrcdir)
def repository(self): '''Get a `mozversioncontrol.Repository` object for the top source directory.''' # We try to obtain a repo using the configured VCS info first. # If we don't have a configure context, fall back to auto-detection. try: return get_repository_from_build_config(self) except BuildEnvironmentNotFoundException: pass return get_repository_object(self.topsrcdir)