Răsfoiți Sursa

*** empty log message ***

David Rose 25 ani în urmă
părinte
comite
3bfe01c424
1 a modificat fișierele cu 11 adăugiri și 4 ștergeri
  1. 11 4
      pandatool/src/softprogs/softCVS.cxx

+ 11 - 4
pandatool/src/softprogs/softCVS.cxx

@@ -343,11 +343,15 @@ rename_file(SoftCVS::SceneFiles::iterator begin,
     Filename file((*p).get_dirname(), (*p).get_filename());
     Filename file((*p).get_dirname(), (*p).get_filename());
     if (!file.unlink()) {
     if (!file.unlink()) {
       nout << "Unable to remove " << file << ".\n";
       nout << "Unable to remove " << file << ".\n";
-    } else if ((*p).is_1_0()) {
-      cvs_has_1_0 = true;
-      // We don't cvs remove the 1.0 version.
     } else {
     } else {
-      _cvs_remove.push_back(file);
+      if ((*p).get_in_cvs()) {
+	if ((*p).is_1_0()) {
+	  // We don't cvs remove the 1.0 version.
+	  cvs_has_1_0 = true;
+	} else {
+	  _cvs_remove.push_back(file);
+	}
+      }
     }
     }
   }
   }
 
 
@@ -364,11 +368,14 @@ rename_file(SoftCVS::SceneFiles::iterator begin,
     // We do have to cvs remove the old one.
     // We do have to cvs remove the old one.
     _cvs_remove.push_back(source);
     _cvs_remove.push_back(source);
   }
   }
+
   if (!cvs_has_1_0) {
   if (!cvs_has_1_0) {
     // And we have to cvs add the new one.
     // And we have to cvs add the new one.
     _cvs_add.push_back(dest);
     _cvs_add.push_back(dest);
   }
   }
 
 
+  orig.set_in_cvs(true);
+
   return true;
   return true;
 }
 }