]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
- store revno in branch diff
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 1 Nov 2009 16:43:02 +0000 (16:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    branch.sh -> 1.18

branch.sh

index 751378202bc646f49fc61ae7f7ad61fe9d2190b1..7d486cc9e38f6615dc9f6fe91e6e85fc0b5b4fa4 100644 (file)
--- a/branch.sh
+++ b/branch.sh
@@ -3,6 +3,7 @@ set -e
 svn=svn://svn.lighttpd.net/lighttpd
 tag=lighttpd-1.4.24
 branch=lighttpd-1.4.x
+out=lighttpd-branch.diff
 
 d=$-
 filter() {
@@ -30,7 +31,11 @@ filter() {
 old=$svn/tags/$tag
 new=$svn/branches/$branch
 echo >&2 "Running diff: $old -> $new"
-LC_ALL=C svn diff --old=$old --new=$new | filter > lighttpd-branch.diff.tmp
+LC_ALL=C svn diff --old=$old --new=$new > $out.tmp
+revno=$(sed -ne 's,^[-+]\{3\} .*\t(revision \([0-9]\+\))$,\1,p' $out.tmp | sort -u)
+echo >&2 "Revision $revno"
+sed -i -e "1i# Revision $revno" $out.tmp
+filter < $out.tmp > $out.tmp2 && mv -f $out.{tmp2,tmp}
 
 if cmp -s lighttpd-branch.diff{,.tmp}; then
        echo >&2 "No new diffs..."
This page took 0.039359 seconds and 4 git commands to generate.