7b25a3fca90e31f2c272fd8d2ef1dfa3e61dc9e4

Author
Andrew Smith <asmith@bcm.com.au>
Committer
Andrew Smith <asmith@bcm.com.au>
Date

Message

The original SVN pluging would mark a folder as dirty if there was an
svn:external set and the output of 'svn status' returned the check for
the external. E.g.

$ svn st
X       Application

Performing status on external item at 'Application'

Shouldn't be marked as being dirty. By grepping for only the valid
output for what should be class as dirty, it won't return false
positives.

Diff

 1diff --git a/plugins/svn/svn.plugin.zsh b/plugins/svn/svn.plugin.zsh
 2index 77de27481becc33cbdc033f0e8481768f5c03bda..53a8a513adcc8adfd9b46889501057977dc31458 100644
 3--- a/plugins/svn/svn.plugin.zsh
 4+++ b/plugins/svn/svn.plugin.zsh
 5@@ -28,7 +28,7 @@ function svn_get_rev_nr {
 6 
 7 function svn_dirty_choose {
 8     if [ in_svn ]; then
 9-        s=$(svn status 2>/dev/null)
10+        s=$(svn status|grep -E '^\s*[ACDIM!?L]' 2>/dev/null)
11         if [ $s ]; then 
12             echo $1
13         else