Which svn command will list all files modified on a branch?

In svn, I have a branch that was created, for example, in edition 22334. Then commits were made on the branch.

How do I get a list of all files that have been changed in a branch compared to what's on the torso? I do not want to see files that have been changed on the torso between when the branch was created and "now."

+76
svn
Oct 02 '08 at 0:28
source share
7 answers

This will do it, I think:

svn diff -r 22334:HEAD --summarize <url of the branch> 
+82
Oct 02 '08 at 0:37
source share

You can also get a quick list of modified files if that’s all you are looking for using the status command with the -u option

 svn status -u 

This will show you which version of the file is in the current code base compared to the latest version in the repository. I use diff only when I really want to see the differences in the files themselves.

Here is a good svn command guide that explains many of these common scenarios: SVN Command Reference

+40
Mar 05 2018-11-11T00:
source share

You can use the following command:

 svn status -q 

According to svnbook :

With --quiet (-q), it prints only summary information about locally modified items.

ATTENTION: The output of this command shows only your modification. Therefore, I suggest doing svn up to get the latest version of the file, and then use svn status -q to get the files you changed.

+16
Oct 24 '17 at 21:43 on
source share

Only modified files will be listed in this list:

 svn status -u | grep M 
+13
Jun 21 '12 at 6:12
source share

-u will also display object files if they are added at compile time.

So, to overcome this, you can use that.

 svn status -u | grep -v '\?' 
+2
Mar 28 2018-12-12T00:
source share
 echo You must invoke st from within branch directory SvnUrl=`svn info | grep URL | sed 's/URL: //'` SvnVer=`svn info | grep Revision | sed 's/Revision: //'` svn diff -r $SvnVer --summarize $SvnUrl 
+2
Aug 09 2018-12-12T00:
source share

svn log -q -v shows paths and hides comments. All paths are indented, so you can search for lines starting with a space. Then direct the pipe to cut and sort to tidy up:

svn log --stop-on-copy -q -v | grep '^[[:space:]]'| cut -c6- | sort -u

This gets all the paths mentioned on the branches, starting at its branch point. Please note that it will list deleted and added, as well as modified files. I just used this to get stuff that I have to worry about when considering a slightly confusing branch from a new developer.

0
Aug 27 '19 at 7:34
source share



All Articles