Skip to content

Commit

Permalink
setlocalversion: print correct subversion revision
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
jacmet authored and sravnborg committed Dec 3, 2008
1 parent 846442c commit 167d6a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setlocalversion
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ if hgid=`hg id 2>/dev/null`; then
fi

# Check for svn and a svn repo.
if rev=`svn info 2>/dev/null | grep '^Revision'`; then
if rev=`svn info 2>/dev/null | grep '^Last Changed Rev'`; then
rev=`echo $rev | awk '{print $NF}'`
changes=`svn status 2>/dev/null | grep '^[AMD]' | wc -l`

Expand Down

0 comments on commit 167d6a0

Please sign in to comment.