From patchwork Sun Oct 16 18:48:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 9378267 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4A8B860487 for ; Sun, 16 Oct 2016 18:48:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D33528DD6 for ; Sun, 16 Oct 2016 18:48:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31BB528DDB; Sun, 16 Oct 2016 18:48:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D16D428DD6 for ; Sun, 16 Oct 2016 18:48:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 466E66E13C; Sun, 16 Oct 2016 18:48:27 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-lf0-x243.google.com (mail-lf0-x243.google.com [IPv6:2a00:1450:4010:c07::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 490366E137 for ; Sun, 16 Oct 2016 18:48:24 +0000 (UTC) Received: by mail-lf0-x243.google.com with SMTP id x79so22736594lff.2 for ; Sun, 16 Oct 2016 11:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UrudPcxD30gbtuPNiPq+7t+DcDhC8s0Sf+RD532fNwA=; b=O2OEsYKmfYpyCoVes/5/Z/JyTmnSjINI15qV5wxrUClhfaIF/xx+u2y7/tBbt1u6tb ZVkVVKSdJ/A7Ipkv6Wvu3M4O/zn35GnIidaMb4zEdZpy5XkutOAsMv+Qmy0zj3+lmD0A +8XIvzJp6mOt3/3vQTS+4kXyRT+Kg5MUu+lWQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UrudPcxD30gbtuPNiPq+7t+DcDhC8s0Sf+RD532fNwA=; b=I4oi3dNPuLL1TMZW0I/E6JWpC3HtO7TT4pXUGqHazgwAdvWoCkKCrKPLjIgZjdLOGD Fxvye4ENv+CzkQrvpp7cwl52KtCrZKbYvqvnaRd/HnjHB1qWjZ0eueBXXeZgtLMtv4N2 zTAmx1Md1CnLQky5haetjUN25RgZi9EdvP4bWsSrNK7j0mopDIykmWEMVyWuBrJCtTUW ypwNO14H6KtMJnvSLiRHMWTcDv3Y8Z72ojn8BQSEl7xBKRyZBGbO4t58F3XsA5KstN1E 0NSfh8uNhVQzSeKQz13F9w7qo8rAvkmk43PQq2TABLg1llQ8vBeRj8bV/cWaN3MVyS/P J6Rg== X-Gm-Message-State: AA6/9RkZkbe/c31sgXhWvZabWTTyMtf1zFzuyt5IMTiYOEguK3gqKXoOTTCLXadjTDeMSA== X-Received: by 10.194.6.36 with SMTP id x4mr10675843wjx.175.1476643702323; Sun, 16 Oct 2016 11:48:22 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:56b5:0:ac27:b86c:7764:9429]) by smtp.gmail.com with ESMTPSA id pe5sm45143773wjb.15.2016.10.16.11.48.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Oct 2016 11:48:21 -0700 (PDT) From: Daniel Vetter To: Intel Graphics Development Date: Sun, 16 Oct 2016 20:48:04 +0200 Message-Id: <20161016184810.12030-3-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161016184810.12030-1-daniel.vetter@ffwll.ch> References: <20161016184810.12030-1-daniel.vetter@ffwll.ch> Cc: Daniel Vetter , DRI Development , Daniel Vetter Subject: [Intel-gfx] [PATCH 2/8] dim: Autocheck for up-to-dateness X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Exits script to annoy people roughly every 100th time ... Also switch to the magic @{upstream} reference, in case the remote is not called origin (which is pretty normal in case of using git worktree). Signed-off-by: Daniel Vetter --- dim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dim b/dim index 57ad4fcf9767..192d6ee10838 100755 --- a/dim +++ b/dim @@ -176,13 +176,17 @@ function dim_uptodate exit 1 fi - if ! git --git-dir=$DIM_PREFIX/maintainer-tools/.git show origin/maintainer-tools:dim |\ + if ! git --git-dir=$DIM_PREFIX/maintainer-tools/.git show @{upstream}:dim |\ diff "$using" - >& /dev/null; then echo "$dim: not running upstream version of the script." >&2 exit 1 fi } +if [[ "$((`date +%s` % 100))" -eq "0" ]] ; then + dim_uptodate +fi + # get message id from file # $1 = file message_get_id ()