From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#22481: 25.1.50; vc-hg: emacs "deadlocks" after using hg with huge amounts of ignored files in the repo Date: Fri, 29 Jan 2016 04:53:58 +0300 Message-ID: <56AAC636.90707@yandex.ru> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1454032525 4683 80.91.229.3 (29 Jan 2016 01:55:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jan 2016 01:55:25 +0000 (UTC) To: Jan Synacek , 22481@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 29 02:55:14 2016 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 1aOyHG-0000gl-Dd for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jan 2016 02:55:10 +0100 Original-Received: from localhost ([::1]:59360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOyHF-0002ED-Pg for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Jan 2016 20:55:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOyHC-0002Dw-3K for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2016 20:55:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOyH8-00028J-TZ for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2016 20:55:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOyH8-00028F-Pc for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2016 20:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aOyH8-00024g-Ev for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2016 20:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Jan 2016 01:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22481 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22481-submit@debbugs.gnu.org id=B22481.14540324487907 (code B ref 22481); Fri, 29 Jan 2016 01:55:02 +0000 Original-Received: (at 22481) by debbugs.gnu.org; 29 Jan 2016 01:54:08 +0000 Original-Received: from localhost ([127.0.0.1]:40150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOyGG-00023T-AJ for submit@debbugs.gnu.org; Thu, 28 Jan 2016 20:54:08 -0500 Original-Received: from mail-lb0-f174.google.com ([209.85.217.174]:35828) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOyGD-00022y-RO for 22481@debbugs.gnu.org; Thu, 28 Jan 2016 20:54:06 -0500 Original-Received: by mail-lb0-f174.google.com with SMTP id bc4so33480937lbc.2 for <22481@debbugs.gnu.org>; Thu, 28 Jan 2016 17:54:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=qFwGVQN9szfIVzNL9Vaz5pbiKvgyD3HqsyvJk23/Wzg=; b=lDSpjZIVq4clKJkhXw0crd/Qb1kClQo+Xuk1hM6bG8dayFyLGAepm7Fffo3z2P9gWO joC8wBrK8ykXa8Hbt2gUT1zcDSlOD10nI9/d7MHzBhzTidY4dbJsTv5MAy9zbwH1+xe0 RA6wR4EPKTi6omnZdwZ6MwuYmXGyv6QhAO6Wd78bBMFTiOCnmqyudLuMpChBfelRG/O5 M4D2xlzzEpYHxGW+3Aao3M2ivu8Xovie0RGLiW+SvvJH0Gw6qODRHoXBhB9h1nE9wqoT CzyCdwo+K99RjMS63FFQ/DyzVq7XJMEK32SHn+VG3yv/2QLCEWrK9PeYSgi1Py4wWpWl +53Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=qFwGVQN9szfIVzNL9Vaz5pbiKvgyD3HqsyvJk23/Wzg=; b=BXdRs284VT0fQ9hwQ3YuJUI8CadUQcmultQfKBb/793bfAokTOXyojmcAFpAW8zf/g FMCDXafyOSn1jS8915X02IAkRq9DDhcR0t8GklEOilKDAfoTKmOdMtt9LuWyzSSPIBd8 1L+c3rV1imvMjYgj/X9DMZyNfgMaFXVvUiXzcAkhvungezHbB6kmcpE76xESE4S13gsW TDr6RY13sG5FlaKuRxHddowWa9Lni/xmlFyYMajYgAOPL343mC6s7dDxLoH5D18Gwmpl LEPRc1JQZt436qWa/yQBeoRv1nDHUtB2zjsCRv4q0y+p+0KenaW77ql86ymOVKUUM7QS XwzQ== X-Gm-Message-State: AG10YORKiHyotDAStw8/KqLwSr9jd4CdbvA9Pmq6GF9nQR4XLRg0Q463g+i4Hd88UkDGWw== X-Received: by 10.112.131.105 with SMTP id ol9mr2320672lbb.45.1454032439956; Thu, 28 Jan 2016 17:53:59 -0800 (PST) Original-Received: from [192.168.1.190] ([178.252.127.222]) by smtp.googlemail.com with ESMTPSA id a124sm1783685lfa.40.2016.01.28.17.53.58 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jan 2016 17:53:58 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Thunderbird/44.0 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:112069 Archived-At: On 01/28/2016 12:10 PM, Jan Synacek wrote: > Emacs freezes because it's running 'hg status -mardui -C '. The > '-i' is the problem here. Since it takes hg itself a very long time, I'm > not sure if it can be directly fixed in Emacs. But at least a > configuration option that would allow one to disable the "-i" option > would be nice. Haven't we fixed this already? See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19304, I've fixed what I could reproduce. The current definition of vc-hg-status-files looks like this: (defun vc-hg-dir-status-files (dir files update-function) (apply 'vc-hg-command (current-buffer) 'async dir "status" (concat "-mardu" (if files "i")) "-C" files) (vc-run-delayed (vc-hg-after-dir-status update-function))) IOW, we only pass '-i' when we ask the backend for the status of specific files. Which shouldn't be slow. If it is, I'm pretty sure it's Mercurial's problem. (You can add a (message "files: %s" files) call at the beginning of vc-hg-dir-status-files, to see what file list it's called with.