Reputation: 1024
I just want a list of files that are different between my working directory and the repository. summary
only seems to report differences between repositories.
Upvotes: 31
Views: 44747
Reputation: 666
Python solution:
import subprocess
ps = subprocess.Popen(('svn status'), stdout=subprocess.PIPE)
output = subprocess.check_output(('findstr "^M"'), stdin=ps.stdout).decode("utf-8")
ps.wait()
print(output)
Upvotes: 0
Reputation: 787
If you want to SVN Diff between 2 branches
svn diff --summarize ^/branches/branch-1.15 ^/branches/branch-1.16
Upvotes: 1
Reputation: 49
svn diff | grep Index:
It worked with my revision. If command does not work for you, run the following command on a directory with small number of changes:
svn diff > out.txt
Open the out.txt. You will notice that every line that contains needed file name starts with the same string (In my case, it was "Index:"), grep for it and you will get what you want.
Good luck.
Upvotes: 1
Reputation: 18657
Run svn status
. It will distinguish between modified, deleted, added, etc. svn help status
has a bunch of information for you.
Upvotes: 43