doc-hackers: Changes to 'master'
mrconfig | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit 2e2d2738b1c7f1212ba4dd9fc865d01acc3cdd40
Author: David Nusinow <dnusinow@debian.org>
Date: Tue Sep 1 19:34:37 2009 -0400
Add a needsupload command to mrconfig
This will let us know if we have a bunch of commits in a package since its
last upload
diff --git a/mrconfig b/mrconfig
index b339df6..810b4e1 100644
--- a/mrconfig
+++ b/mrconfig
@@ -60,6 +60,18 @@ git_debhelper = if [ $@ ]; then
fi
fi
+git_needsupload = if [ $@ ]; then
+ BRANCH="$@"
+ else
+ BRANCH="debian-unstable"
+ fi
+ TAGNAME=`git describe --abbrev=0 "$BRANCH"`
+ DESCRIPTION=`git describe "$BRANCH"`
+ COMMITDIFF=`echo "$DESCRIPTION" | sed -e "s/$TAGNAME//" -e 's/^-//' | sed -e 's/-.*//'`
+ if [ "$COMMITDIFF" > 0 ]; then
+ echo "`basename $MR_REPO` has $COMMITDIFF commits since the last upload" >> $HOME/mr_needsupload.log
+ fi
+
[debian/xorg/app/compiz]
dummy = true
[debian/xorg/app/grandr]
Reply to: