[Reproducible-commits] [misc] 03/03: reports: more time optimisation

Ximin Luo infinity0 at debian.org
Mon Aug 8 21:14:47 UTC 2016


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository misc.

commit e32899b395b18458fe33c33b004b1091394c25ab
Author: Ximin Luo <infinity0 at debian.org>
Date:   Mon Aug 8 23:13:48 2016 +0200

    reports: more time optimisation
    
    review-issues: show 8 lines of context, usually enough to see the issue name
    review-uploads: don't fail if ~/Mail does not exist, and sort by subject name
---
 reports/bin/review-issues  | 2 +-
 reports/bin/review-uploads | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/reports/bin/review-issues b/reports/bin/review-issues
index a0be53a..d3f561d 100755
--- a/reports/bin/review-issues
+++ b/reports/bin/review-issues
@@ -4,4 +4,4 @@ test -d ".git" || { echo >&2 "run this from notes.git"; exit 1; }
 scriptdir="$(readlink -f "$(dirname "$0")")"
 test -n "$RB_REPORT_WEEK_END" || { . "$scriptdir/../latest/variables"; }
 
-git log --since "@$RB_REPORT_WEEK_START" --until "@$RB_REPORT_WEEK_END" --graph -p master -- issues.yml
+git log -U8 --since "@$RB_REPORT_WEEK_START" --until "@$RB_REPORT_WEEK_END" --graph -p master -- issues.yml
diff --git a/reports/bin/review-uploads b/reports/bin/review-uploads
index 140cb76..6451583 100755
--- a/reports/bin/review-uploads
+++ b/reports/bin/review-uploads
@@ -9,4 +9,4 @@ if [ -f "$(dirname "$mbox")/variables" ]; then . "$(dirname "$mbox")/variables";
 if [ -z "$RB_REPORT_WEEK_END" ]; then echo >&2 "abort: RB_REPORT_WEEK_END not set"; exit 1; fi
 
 date_pattern="$(date -u -d"@$RB_REPORT_WEEK_START" +"%d/%m/%y")-$(date -u -d"@$((RB_REPORT_WEEK_END - 1))" +"%d/%m/%y")"
-env TZ=UTC mutt -e "push 'l ~d $date_pattern ~b $pattern<Enter>';" -R -f "$mbox"
+env TZ=UTC mutt -e "set folder='$(dirname $mbox)'; push 'l ~d $date_pattern ~b $pattern<Enter>os';" -R -f "$mbox"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-commits mailing list