All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel.vetter@ffwll.ch>
To: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>,
	DRI Development <dri-devel@lists.freedesktop.org>,
	Daniel Vetter <daniel.vetter@intel.com>
Subject: [PATCH 2/8] dim: Autocheck for up-to-dateness
Date: Sun, 16 Oct 2016 20:48:04 +0200	[thread overview]
Message-ID: <20161016184810.12030-3-daniel.vetter@ffwll.ch> (raw)
In-Reply-To: <20161016184810.12030-1-daniel.vetter@ffwll.ch>

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 <daniel.vetter@intel.com>
---
 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 ()
-- 
2.9.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2016-10-16 18:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-16 18:48 [PATCH 0/8] dim: move -nigthly into drm-nighly.git Daniel Vetter
2016-10-16 18:48 ` [PATCH 1/8] dim: Extract TODO Daniel Vetter
2016-10-16 18:48 ` Daniel Vetter [this message]
2016-10-16 18:48 ` [PATCH 3/8] dim: autodetect remotes, first part for dim_setup Daniel Vetter
2016-10-16 18:48 ` [PATCH 4/8] dim: support git worktree for aux checkouts Daniel Vetter
2016-10-16 18:48 ` [PATCH 5/8] dim: Nuke nightly-forget Daniel Vetter
2016-10-16 18:48 ` [PATCH 6/8] dim: autodetect branches in rebuild-nightly Daniel Vetter
2016-10-16 18:48 ` [PATCH 7/8] dim: remove integration-tree remotes Daniel Vetter
2016-10-16 18:48 ` [PATCH 8/8] dim: Split out drm-nightly.git Daniel Vetter
2016-10-17  8:10 ` [PATCH 0/8] dim: move -nigthly into drm-nighly.git Daniel Vetter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161016184810.12030-3-daniel.vetter@ffwll.ch \
    --to=daniel.vetter@ffwll.ch \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.