mathlibtools/lib.py
def pull(self, remote: str='origin') -> None:
        """
        Pull from the given remote and get mathlib oleans.
        """
        if self.is_dirty:
            raise LeanDirtyRepo('Cannot pull because repository is dirty')
        old_mathlib = self.mathlib_rev
        assert self.repo
        log.info(f"Pulling from {remote}")
        self.repo.remote(remote).pull(self.repo.active_branch)
        self.read_config()
        if self.is_mathlib:
            self.get_cache()
        else:
            if self.mathlib_rev != old_mathlib:
                log.info("Updating mathlib")
                self.run_echo(['leanpkg', 'configure'])
            self.get_mathlib_olean()

        Pull from the given remote and get mathlib oleans.
        
Pull from the given remote and get mathlib oleans.
Pull from the given remote and get mathlib oleans .
def pull(self, remote: str='origin') -> None:
        if self.is_dirty:
            raise LeanDirtyRepo('Cannot pull because repository is dirty')
        old_mathlib = self.mathlib_rev
        assert self.repo
        log.info(f"Pulling from {remote}")
        self.repo.remote(remote).pull(self.repo.active_branch)
        self.read_config()
        if self.is_mathlib:
            self.get_cache()
        else:
            if self.mathlib_rev != old_mathlib:
                log.info("Updating mathlib")
                self.run_echo(['leanpkg', 'configure'])
            self.get_mathlib_olean()
def pull ( self , remote : str = 'origin' ) -> None : if self . is_dirty : raise LeanDirtyRepo ( 'Cannot pull because repository is dirty' ) old_mathlib = self . mathlib_rev assert self . repo log . info ( f"Pulling from {remote}" ) self . repo . remote ( remote ) . pull ( self . repo . active_branch ) self . read_config ( ) if self . is_mathlib : self . get_cache ( ) else : if self . mathlib_rev != old_mathlib : log . info ( "Updating mathlib" ) self . run_echo ( [ 'leanpkg' , 'configure' ] ) self . get_mathlib_olean ( )
Pull from the given remote and get mathlib oleans.
Pull from the given remote and get mathlib oleans .
"""
        Pull from the given remote and get mathlib oleans.
        """
self
remote
str