mafalda
mafalda

Reputation: 1024

How do I get a list of changed files in svn?

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

Answers (6)

tzg
tzg

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

Ruben Benjamin
Ruben Benjamin

Reputation: 787

If you want to SVN Diff between 2 branches

svn diff --summarize ^/branches/branch-1.15 ^/branches/branch-1.16

Upvotes: 1

Nitin
Nitin

Reputation: 431

Try

svn diff --summarize -r startRevision:endRevision URL.

Upvotes: 43

Yuri Joselson
Yuri Joselson

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

Mark Loeser
Mark Loeser

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

Nathan Kidd
Nathan Kidd

Reputation: 2969

svn status is what you need.

Upvotes: 13

Related Questions