Lines Matching refs:backup

1227     char *backup;  in checkout_file()  local
1233 backup = NULL; in checkout_file()
1240 backup = Xasprintf ("%s/%s%s", CVSADM, CVSPREFIX, finfo->file); in checkout_file()
1242 rename_file (finfo->file, backup); in checkout_file()
1247 if (unlink_file_dir (backup) < 0) in checkout_file()
1252 error (0, errno, "error removing %s", backup); in checkout_file()
1254 free (backup); in checkout_file()
1255 backup = NULL; in checkout_file()
1476 if (backup != NULL) in checkout_file()
1478 rename_file (backup, finfo->file); in checkout_file()
1479 free (backup); in checkout_file()
1480 backup = NULL; in checkout_file()
1488 if (backup != NULL) in checkout_file()
1492 if (unlink_file_dir (backup) < 0) in checkout_file()
1497 error (0, errno, "error removing %s", backup); in checkout_file()
1499 free (backup); in checkout_file()
1553 char *backup; in patch_file() local
1607 backup = Xasprintf ("%s/%s%s", CVSADM, CVSPREFIX, finfo->file); in patch_file()
1609 rename_file (finfo->file, backup); in patch_file()
1612 if (unlink_file (backup) < 0 in patch_file()
1614 error (0, errno, "cannot remove %s", backup); in patch_file()
1806 if (isfile (backup)) in patch_file()
1807 rename_file (backup, finfo->file); in patch_file()
1817 if (unlink_file (backup) < 0 in patch_file()
1819 error (0, errno, "cannot remove %s", backup); in patch_file()
1827 free (backup); in patch_file()
1903 const char *backup, int has_conflicts) in RegisterMerge() argument
1927 backup); in RegisterMerge()
1941 char *backup; in merge_file() local
1954 backup = Xasprintf ("%s%s.%s", BAKPREFIX, finfo->file, vers->vn_user); in merge_file()
1956 if (unlink_file (backup) && !existence_error (errno)) in merge_file()
1957 error (0, errno, "unable to remove %s", backup); in merge_file()
1958 copy_file (finfo->file, backup); in merge_file()
1986 finfo->fullname, backup); in merge_file()
1987 rename_file (backup, finfo->file); in merge_file()
1994 RegisterMerge (finfo, vers, backup, 1); in merge_file()
2003 error (0, 0, "file from working directory is now in %s", backup); in merge_file()
2019 finfo->fullname, backup); in merge_file()
2020 rename_file (backup, finfo->file); in merge_file()
2038 RegisterMerge (finfo, vers, backup, status); in merge_file()
2057 if (!noexec && !xcmp (backup, finfo->file)) in merge_file()
2074 free (backup); in merge_file()
2099 char *backup; in join_file() local
2457 backup = Xasprintf ("%s%s.%s", BAKPREFIX, finfo->file, vers->vn_user); in join_file()
2459 if (unlink_file (backup) < 0 in join_file()
2461 error (0, errno, "cannot remove %s", backup); in join_file()
2462 copy_file (finfo->file, backup); in join_file()
2565 error (0, 0, "file from working directory is now in %s", backup); in join_file()
2579 finfo->fullname, backup); in join_file()
2580 rename_file (backup, finfo->file); in join_file()
2587 if (!noexec && !xcmp (backup, finfo->file)) in join_file()
2616 RegisterMerge (finfo, vers, backup, status); in join_file()
2621 free (backup); in join_file()