[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[TSVN] Feature request: Show deleted files

From: Susser, Michael RD-AS5 EXT <Michael.Susser.ext_at_heidelberg.com>
Date: 2005-06-22 12:00:13 CEST

Hi,

it could be very useful to get a list of all files that have been
deleted from a repository. If you like to get one of these files back
you have to know the correct revision number. You could do this by "Show
Log" but you have to click on each revision to see the action (modified,
deleted, ...). I would suggest to add a new dialog where you can select
an url and then see the list of all deleted files of the selected
repository including the revision number, author, etc. Filtering for
authors would be nice.

I have written a small ruby script that demonstrates the functionality
for the command line client:

$revision = 0
$forauthor = ARGV[1]
$author = ""
$date = ""

if ARGV[0] == nil
  puts("Show deleted files")
  puts("Usage:")
  puts(" SDF URL [Author]")
end

IO.popen("svn log -v #{ARGV[0]}", "r") { |pipe|
  pipe.each { |line|
    if line =~ /^r(\d+)(\s+)\|(\s+)(.*)(\s+)\|(\s+)(.*)(\s+)\|(.*)/
      $revision = $1
      $author = $4
      $date = $7
    end

    printout = false
    if line =~ /(^\s+)D(\s+)(.*)/
      if $forauthor == nil or $forauthor == $author
        puts("r#{$revision} \| #{$author} \| #{$date} \| #{line}")
      end
    end
  }
}

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Jun 22 12:00:38 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.