Output svn revision of latest change, instead of repo revision as thats what we're interested in (especially when working on a branch/tag).
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -51,7 +51,7 @@ if hgid=`hg id 2>/dev/null`; then · 50 unmodified lines | ||
| 51 | 51 | fi |
| 52 | 52 | |
| 53 | 53 | # Check for svn and a svn repo. |
| 54 | −if rev=`svn info 2>/dev/null | grep '^Revision'`; then | |
| 54 | +if rev=`svn info 2>/dev/null | grep '^Last Changed Rev'`; then | |
| 55 | 55 | rev=`echo $rev | awk '{print $NF}'` |
| 56 | 56 | changes=`svn status 2>/dev/null | grep '^[AMD]' | wc -l` |
| 57 | 57 | |