diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-12-02 15:58:05 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-12-03 16:58:29 -0500 |
commit | 167d6a02c1dbdd84d49e87df7718f18fa31cb971 (patch) | |
tree | 62dd448fc2286dd6a05a06bfa22313180164c34b /scripts/setlocalversion | |
parent | 846442c8ddc02e378e7b981f0928449ed1ff1e1f (diff) |
setlocalversion: print correct subversion revision
Output svn revision of latest change, instead of repo revision as thats
what we're interested in (especially when working on a branch/tag).
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/setlocalversion')
-rwxr-xr-x | scripts/setlocalversion | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/setlocalversion b/scripts/setlocalversion index 72d233528ade..81d984b91594 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion | |||
@@ -51,7 +51,7 @@ if hgid=`hg id 2>/dev/null`; then | |||
51 | fi | 51 | fi |
52 | 52 | ||
53 | # Check for svn and a svn repo. | 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 | rev=`echo $rev | awk '{print $NF}'` | 55 | rev=`echo $rev | awk '{print $NF}'` |
56 | changes=`svn status 2>/dev/null | grep '^[AMD]' | wc -l` | 56 | changes=`svn status 2>/dev/null | grep '^[AMD]' | wc -l` |
57 | 57 | ||