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)

Thanks!

link|improve this question

75% accept rate
feedback

1 Answer

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.

link|improve this answer
+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 Apr 12 '11 at 1:55
If you want a thoroughly engineered solution, I suggest svn status -u --xml | xsltproc my-filter.xslt. – Kevin Reid Apr 12 '11 at 10:57
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.