Skip to content

Commit 167d6a0

Browse files
jacmetsravnborg
authored andcommitted
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>
1 parent 846442c commit 167d6a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/setlocalversion‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if hgid=`hg id 2>/dev/null`; then
5151
fi
5252

5353
# 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
5555
rev=`echo $rev | awk '{print $NF}'`
5656
changes=`svn status 2>/dev/null | grep '^[AMD]' | wc -l`
5757

0 commit comments

Comments
 (0)