From: Jonathan Kotta <jpkotta@gmail.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 24126@debbugs.gnu.org
Subject: bug#24126: vc-hg-state can be extremely slow
Date: Tue, 2 Aug 2016 10:57:33 -0500 [thread overview]
Message-ID: <CALDneavS7QoF+YtiW=2DvOn95KdAi3WQcz-cOdSwxXgxnWn1AA@mail.gmail.com> (raw)
In-Reply-To: <932b12d0-6081-99c4-91f7-ed00f42462f2@yandex.ru>
[-- Attachment #1: Type: text/plain, Size: 849 bytes --]
On Tue, Aug 2, 2016 at 8:32 AM, Dmitry Gutov <dgutov@yandex.ru> wrote:
> On 08/01/2016 09:40 PM, Jonathan Kotta wrote:
>
>> Emacs uses `hg status -A` in vc-hg-state, which in turn is used in many
>> vc commands (e.g. vc-root-diff). The "-A" option makes mercurial look
>> at all files under the directory, even the ignored ones. If there are a
>> lot of ignored files, this will be very slow.
>>
>
> Why does it do that? We're passing a specific file name to it.
>
In the case of `vc-root-diff` at least, it's passing in a directory; the
command is essentially `hg status -A ./`, and the CWD is indeed the repo
root. I did this by running `vc-root-diff` from a dired buffer visiting
the repo root.
--
Thanks,
Jonathan Kotta
Hofstadter's Law:
It always takes longer than you expect, even
when you take into account Hofstadter's Law.
[-- Attachment #2: Type: text/html, Size: 1474 bytes --]
next prev parent reply other threads:[~2016-08-02 15:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-01 18:40 bug#24126: vc-hg-state can be extremely slow Jonathan Kotta
2016-08-02 13:32 ` Dmitry Gutov
2016-08-02 15:57 ` Jonathan Kotta [this message]
2016-08-02 16:19 ` Dmitry Gutov
2021-08-15 12:30 ` Lars Ingebrigtsen
2021-08-17 0:14 ` Dmitry Gutov
2021-08-18 14:39 ` Lars Ingebrigtsen
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='CALDneavS7QoF+YtiW=2DvOn95KdAi3WQcz-cOdSwxXgxnWn1AA@mail.gmail.com' \
--to=jpkotta@gmail.com \
--cc=24126@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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.