svn : filter only remotely modified files in `svn st -u`

0

When performing a subversion status update

svn st -u

All changes both remote and local are displayed. Is there a way to filter this list to show only remotely modified files?

(without using awk, sed or the like)

bguiz

Posted 2011-04-11T01:31:26.640

Reputation: 1 651

Answers

2

Almost:

svn diff --summarize -rCOMMITTED:HEAD

--summarize causes svn diff to emit status-style output.

However, this will not compare each file to the repository as svn status -u does, but rather compare the revision which the current directory is at to HEAD. Therefore if you have a mixed-revision working copy, such as if you committed but did not update, this will report your committed files as modified.

Kevin Reid

Posted 2011-04-11T01:31:26.640

Reputation: 2 854

+1 @Kevin : Unfortunately I need to do this because I have a mixed-revision working copy. Thanks for the answer - I'm sure it will come in useful somewhere else! – bguiz – 2011-04-12T01:55:52.700

If you want a thoroughly engineered solution, I suggest svn status -u --xml | xsltproc my-filter.xslt. – Kevin Reid – 2011-04-12T10:57:12.397