From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ben Gamari Newsgroups: gmane.emacs.bugs,gmane.emacs.devel Subject: bug#21559: [PATCH] autorevert: Wait for repository to become idle before calling vc-find-file-hook Date: Mon, 26 Oct 2015 19:43:37 +0100 Message-ID: <1445885018-17451-1-git-send-email-ben@smart-cactus.org> References: <87wpvebraz.fsf@smart-cactus.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445885065 26683 80.91.229.3 (26 Oct 2015 18:44:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Oct 2015 18:44:25 +0000 (UTC) Cc: 21559@debbugs.gnu.org, michael.albinus@gmx.de To: emacs-devel@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 26 19:44:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zqmkc-0006B7-Mv for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Oct 2015 19:44:10 +0100 Original-Received: from localhost ([::1]:54619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqmkb-0006SE-W1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Oct 2015 14:44:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqmkV-0006MQ-NR for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 14:44:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqmkT-0001X7-VO for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 14:44:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqmkT-0001Wx-TK for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 14:44:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZqmkT-0005x0-Ot for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 14:44:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87wpvebraz.fsf@smart-cactus.org> Resent-From: Ben Gamari Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Oct 2015 18:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21559 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21559-submit@debbugs.gnu.org id=B21559.144588503222845 (code B ref 21559); Mon, 26 Oct 2015 18:44:01 +0000 Original-Received: (at 21559) by debbugs.gnu.org; 26 Oct 2015 18:43:52 +0000 Original-Received: from localhost ([127.0.0.1]:39404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqmkK-0005wP-IG for submit@debbugs.gnu.org; Mon, 26 Oct 2015 14:43:52 -0400 Original-Received: from mail.smart-cactus.org ([54.187.36.80]:41583) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqmkI-0005wB-El for 21559@debbugs.gnu.org; Mon, 26 Oct 2015 14:43:50 -0400 Original-Received: from localhost.localdomain (HSI-KBW-109-193-204-037.hsi7.kabel-badenwuerttemberg.de [109.193.204.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: ben@smart-cactus.org) by mail.smart-cactus.org (Postfix) with ESMTPSA id 8E16A42B42; Mon, 26 Oct 2015 18:32:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.smart-cactus.org; s=mail; t=1445884331; bh=9iCP7rVCcMGiOf+KQxxa2RwSWeSgikyl7raKpxQLI1g=; h=From:To:Cc:Subject:Date:From; b=AaujjjPp4E9eEHsdl32EgJiA7tFMwbP6uIfjBj0Nz6eCWfh6iz6sk+jiMTwwXQkmv jzWQ1wLQu1lzgz+rTc/Zl1VHCcVDCR02YbgUfw4MjiDd8PI1tGsiTl4sgMT85syl/D k1fwXczwOKpvHgC/OezZxcaRDvpeG/jWg6bhk9X0= X-Mailer: git-send-email 2.6.1 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108049 gmane.emacs.devel:192677 Archived-At: Hi all, This is a patch that I've been using locally for a few months now to resolve #21599, where auto-revert and vc conspire to break git-rebase. Ultimately the problem is a race-condition which would require a change in git to resolve completely, but in practice this timeout-based approach eliminates the issue. Cheers, - Ben