# HG changeset patch # User Giorgos Keramidas # Date 1155489673 -10800 # Node ID 0ffca0cb9f4b83181024ebc6e1d4c78e661c5592 # Parent cf86bbb8ed68a548e2ef5b1c8cbc8cc8d6176c19 Use cached hg-root-dir instead of rediscovering by a second call to (hg-root). We have the path we need already as the value of hg-root-dir. diff --git a/contrib/mercurial.el b/contrib/mercurial.el --- a/contrib/mercurial.el +++ b/contrib/mercurial.el @@ -722,7 +722,7 @@ code by typing `M-x find-library mercuri (if (not hg-root-dir) (error "error: %s: directory is not part of a Mercurial repository." default-directory) - (cd (hg-root)))))) + (cd hg-root-dir))))) (defun hg-add (path) "Add PATH to the Mercurial repository on the next commit.