History

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).

Peter Korsgaard committed 17 years ago

Commit 167d6a01 parent 846442c1 file · +1 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/setlocalversion+1−1
@@ -51,7 +51,7 @@ if hgid=`hg id 2>/dev/null`; then · 50 unmodified lines
51fi51fi
52 52
53# Check for svn and a svn repo.53# Check for svn and a svn repo.
54if rev=`svn info 2>/dev/null | grep '^Revision'`; then54if 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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t