Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82723
b: refs/heads/master
c: ba3d05f
h: refs/heads/master
i:
  82721: cb543c4
  82719: 81c1e6e
v: v3
  • Loading branch information
Bryan Wu authored and Sam Ravnborg committed Feb 3, 2008
1 parent 528b3c6 commit 8ee2671
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fa95eb1f17a5fe7b3593cff4bf27dbe9ae6cac89
refs/heads/master: ba3d05fb6369e617aee4f16bfce7ba5cbd30f26b
16 changes: 16 additions & 0 deletions trunk/scripts/setlocalversion
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,19 @@ if hgid=`hg id 2>/dev/null`; then
# All done with mercurial
exit
fi

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

# Are there uncommitted changes?
if [ $changes != 0 ]; then
printf -- '-svn%s%s%s' "$rev" -dirty "$changes"
else
printf -- '-svn%s' "$rev"
fi

# All done with svn
exit
fi

0 comments on commit 8ee2671

Please sign in to comment.