How to find the number of fixed files in a disruptive program?

Given the file, how do I know the number of file fixes? The revision number of the chapter may be in hundreds, but I would review the file only 4 times. So, given this file, I want 4 as the answer. It sounds pretty trivial, but I could not find any team to achieve this. Can anyone help?

+4
source share
6 answers

Use svn log -q filename | grep '^r' | wc -l svn log -q filename | grep '^r' | wc -l

+4
source
 svn log FOO.C -q | grep -cr 

svn log -q prints the summary information for a given file or directory in the log, and grep -cr counts the number of lines containing the letter "r" (basically we just want to ignore the separator lines "----- ---")

+4
source

The Subversion book explains:

You can also view the log history of a single file or directory. For instance:

$ svn log foo.c

$ svn log http://foo.com/svn/trunk/code/foo.c

They will only display log messages for versions in which the work file (or URL) has changed.

A full description of the magazine team is here .

+2
source

Does svn log contain the information you need?

0
source

I am sure that Subversion contains a view mechanism in the Repo browser.

Do you use a turtle with Subversion?

0
source

This should do it:

svn log -q | gpp -v "\ - \ - \ - \ - \ - \ - \ - \ -" | wc -l

0
source

Source: https://habr.com/ru/post/1286019/


All Articles