parameters: (self, branch='')
docstring: Return list of all snapshots in date order for the given branch.
docstring_summary: Return list of all snapshots in date order for the given branch.
docstring_tokens: Return list of all snapshots in date order for the given branch .
function: 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]
function_tokens: 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 ]