Home > other >  Tortoise SVN - Check only NEW added files from a period of time
Tortoise SVN - Check only NEW added files from a period of time

Time:10-12

I wonder if there's a SIMPLE way in Tortoise SVN fucntions or by using SQLLite to check how many NEW added files to the repository were added and which during a minor or great period of time?

EX: New added files since Jan 1, 2022 to October 10, 2022.

CodePudding user response:

You can parse the output of svn diff --summarize as in this answer. A stands for added files, so you can count the number of lines that begin with A. Here is an example:

svn diff --summarize -r1750000:1800000 https://demo-server.visualsvn.com/asf

or with dates instead of revision numbers

svn diff --summarize -r {2022-01-01}:{2022-10-10} https://demo-server.visualsvn.com/asf

If you use the --xml option, you can check for item=added as in this output:

<path
   item="added"
   props="none"
   kind="file">https://demo-server.visualsvn.com/asf/cassandra/site/publish/css/style.css</path>

As suggested by @LazyBadger in a comment below, you can use the svn log --verbose command that should work faster than svn diff. Here is an example:

svn log --verbose -r {2022-01-01}:{2022-10-10} https://demo-server.visualsvn.com/asf
  • Related