Lines Matching refs:backup

25 Workspace backup
68 Newest backup generation.
70 All files in a given backup generation, with the exception of
110 "which the backup was taken.\n" % (msg, n))
211 def __init__(self, backup, ws):
213 self.bu = backup
226 def backup(self):
258 '''Restore committed changes from backup'''
282 '''Compare backup of committed changes to workspace'''
292 raise util.Abort("couldn't open backup node list: %s" % e)
302 # If there are outgoing nodes not in the prior backup we need
303 # to take a new backup; it's fine if there are nodes in the
304 # old backup which are no longer outgoing, however.
321 def __init__(self, backup, ws):
323 self.bu = backup
344 def backup(self):
348 raise util.Abort("Unable to backup an uncommitted merge.\n"
381 '''Return the desired working copy node from the backup'''
466 '''Compare backup of uncommitted changes to workspace'''
482 raise util.Abort("couldn't open backup diff %s\n"
520 def __init__(self, backup, ws):
521 self.bu = backup
525 def backup(self):
560 raise util.Abort("couldn't backup metadata to %s:\n"
566 '''Restore workspace metadata from an pre-tar backup'''
580 '''Restore workspace metadata (from a tar-style backup)'''
677 '''A backup (in tar format) of complete source files from every
688 def __init__(self, backup, ws):
689 self.bu = backup
724 def backup(self):
756 raise util.Abort("Could not backup clear file %s "
762 '''Cleanup a failed Clear backup.
764 Remove the clear tarball from the backup directory.
774 '''Clear backups are never compared, return False (no backup needed).
776 Should a backup actually be needed, one of the other
784 '''A backup of a given workspace'''
814 '''Find the path to an appropriate backup directory based on NAME'''
831 'find backup path')
833 backupbase = os.path.join(home, 'cdm.backup')
853 '''Create a new backup generation'''
858 raise util.Abort("Couldn't create backup generation %s: %s" %
862 '''return full path to backup file FILE at GEN'''
866 '''Unlink the specified path from the backup directory.
875 '''Open the specified file in the backup directory'''
880 backup directory.'''
886 # If there's no current backup generation, or the last backup was
887 # invalid (lacking the dirstate file), we need a backup regardless
899 def backup(self):
900 '''Take a backup of the current workspace
909 raise util.Abort('Could not create backup directory %s: %s' %
917 x.backup()
929 # backup also fails, and raises a second exception.
949 '''Restore workspace from backup
951 Restores from backup generation GEN (defaulting to the latest)