diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el index a45279a574c..c0d92533241 100644 --- a/lisp/vc/vc-hg.el +++ b/lisp/vc/vc-hg.el @@ -236,7 +236,9 @@ A value of `default' means to use the value of `vc-resolve-conflicts'." (setq file (expand-file-name file)) (let* ((status nil) - (default-directory (file-name-directory file)) + (root (vc-hg-root file)) + (file (file-relative-name file root)) + (default-directory root) (out (with-output-to-string (with-current-buffer