]> git.eshelyaron.com Git - emacs.git/commit
Remove extra process call from vc-hg-registered
authorTom Fitzhenry <tomfitzhenry@google.com>
Mon, 9 Nov 2020 11:19:10 +0000 (22:19 +1100)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 10 Nov 2020 15:42:54 +0000 (17:42 +0200)
commitb5b0f07b0a4acd6bdbbaf27744cf0e06f54d3008
tree3bd1c91d1d1d8287fc5358502cc11b64a49ec568
parentf1eca59dfaca57bab67b5629d7b23a8649820fc0
Remove extra process call from vc-hg-registered

Prefer vc-state to benefit from its caching (bug#44534)

This same technique is used in vc-git.el,
per commit 2018-06-28 "Remove extra process call from vc-git-find-file-hook"
93c41ce6aa64b14fc9bd7bdd0d909915a79191cd.

* lisp/vc/vc-hg.el (vc-hg-registered): Use vc-state rather than vc-hg-state.
lisp/vc/vc-hg.el