mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
846442c8dd
commit
167d6a02c1
1 changed files with 1 additions and 1 deletions
|
@ -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`
|
||||
|
||||
|
|
Loading…
Reference in a new issue