From: Bastian Germann <bage@debian.org>
Date: Fri, 14 Feb 2025 11:02:41 +0100
Subject: Replace removed File.exists with File.exist

---
 cvsdelta | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/cvsdelta b/cvsdelta
index 3347de2..e2b038d 100755
--- a/cvsdelta
+++ b/cvsdelta
@@ -699,7 +699,7 @@ class CVSDeltaOptions
     if hd = home_directory
       rc = hd + "/.cvsdeltarc"
       log "reading RC file: #{rc}"
-      if File.exists?(rc)
+      if File.exist?(rc)
         read_rc_file(rc)
       end
     end
@@ -711,14 +711,14 @@ class CVSDeltaOptions
 
     topdir = find_top_of_project
 
-    if topdir && File.exists?(topdir + "/.cvsdeltarc")
+    if topdir && File.exist?(topdir + "/.cvsdeltarc")
       read_rc_file(topdir + "/.cvsdeltarc")
     end
   end
 
   def find_top_of_project(dir = File.expand_path("."))
     repfile = dir + "/CVS/Repository"
-    if File.exists?(repfile)
+    if File.exist?(repfile)
       IO.readlines(repfile).each do |line|
         if line.index("/")
           # keep going up the directory structure
@@ -864,7 +864,7 @@ module FileTester
   # returns if the given file is nothing but text (ASCII).
   def FileTester.text?(file)
     # Don't waste our time if it doesn't even exist:
-    return false unless File.exists?(file)
+    return false unless File.exist?(file)
     
     if file.index(/\.(\w+)\s*$/)
       suffix = $1
@@ -1031,7 +1031,7 @@ class OrderedDirectoryList < Array
 
   # add a directory
   def add(dir)
-    if dir && !File.exists?(dir + "/CVS/Entries")
+    if dir && !File.exist?(dir + "/CVS/Entries")
       
       # TODO: remove the CVS-icity of this:
 
@@ -1217,7 +1217,7 @@ class IgnoredPatterns < Hash
 
     if dir
       cifile = dir + "/" + @ignorename
-      if File.exists?(cifile)
+      if File.exist?(cifile)
         log "reading #{cifile}"
         IO.foreach(cifile) do |line|
           line.chomp!
@@ -1239,7 +1239,7 @@ class IgnoredPatterns < Hash
   def read_ignore_file_named(fname)
     pats = Array.new
 
-    if File.exists?(fname)
+    if File.exist?(fname)
       IO.foreach(fname) do |line|
         line.chomp!
         line.gsub!(/\+/, '\\+')
@@ -1570,7 +1570,7 @@ class CVSDiff
 
     trap("INT") do 
       # If we get interrupted, make sure we delete the outfile:
-      File.unlink(outfile) if File.exists?(outfile)
+      File.unlink(outfile) if File.exist?(outfile)
 
       # This bypasses the stack trace on exit.
       abort
@@ -1686,7 +1686,7 @@ class CVSEntry
   
   def initialize(name)
     @name = name
-    @incvs = File.exists?(name + "/CVS/Entries")
+    @incvs = File.exist?(name + "/CVS/Entries")
     @added = false
 
     @@entries[name] = self
@@ -2019,7 +2019,7 @@ class CVSDelta
     log top
     
     cvsdirs = File.find_where(top) do |fd| 
-      File.is_directory?(fd) && File.exists?(fd + "/CVS/Entries")
+      File.is_directory?(fd) && File.exist?(fd + "/CVS/Entries")
     end
     
     cvsdirs.each do |dir|
@@ -2037,7 +2037,7 @@ class CVSDelta
     entfile = dir + "/CVS/Entries"
     if @entfiles.include?(entfile)
       log "entries file " + entfile + " already read"
-    elsif !File.exists?(entfile)
+    elsif !File.exist?(entfile)
       log "no entries file: " + entfile
     else
       log "reading entries file: " + entfile
@@ -2051,7 +2051,7 @@ class CVSDelta
           @entries.push(fullname)
           
           if date == "dummy timestamp" || date.index("Initial added")
-            if File.exists?(fullname)
+            if File.exist?(fullname)
               log "adding new file as changed"
               @changed[fullname] = NewFile.create(fullname)
               @total.adds += @changed[fullname].adds
@@ -2059,7 +2059,7 @@ class CVSDelta
               log "adding removed file as changed"
               @changed[fullname] = DeletedFile.new(fullname)
             end
-          elsif not File.exists?(fullname)
+          elsif not File.exist?(fullname)
             log "entry " + fullname + " is missing"
             add_deleted_file(fullname)
           end
@@ -2160,7 +2160,7 @@ begin
   # Log.output = "/tmp/cvsdelta.log." + Process.pid.to_s
 
   # we should be running this from a CVS'ed directory
-  unless File.exists?("CVS")
+  unless File.exist?("CVS")
     $stderr.print "this directory does not appear to be part of a CVS project\n"
   end
 
