(self, branch='')
Return list of all snapshots in date order for the given branch.
Return list of all snapshots in date order for the given branch.
Return list of all snapshots in date order for the given branch .
def snapshots(self, branch=''):
        """
        Return list of all snapshots in date order for the given branch.
        """
        if not branch:
            branch = self.branch
        if not os.path.exists(os.path.join(self.bup_path, 'refs', 'heads', branch)):
            # branch doesn't exist
            return []
        else:
            return self.cmd(["/usr/bin/bup", "ls", branch+'/'], verbose=0).split()[:-1]
def snapshots ( self , branch = '' ) : if not branch : branch = self . branch if not os . path . exists ( os . path . join ( self . bup_path , 'refs' , 'heads' , branch ) ) : # branch doesn't exist return [ ] else : return self . cmd ( [ "/usr/bin/bup" , "ls" , branch + '/' ] , verbose = 0 ) . split ( ) [ : - 1 ]