changeset 2876:0ffca0cb9f4b

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.
author Giorgos Keramidas <keramida@ceid.upatras.gr>
date Sun, 13 Aug 2006 20:21:13 +0300
parents cf86bbb8ed68
children 982c3237c63d
files contrib/mercurial.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.