Exemple #1
0
    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)
Exemple #2
0
    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)