Fix to vc-hg-annotate-extract-revision-at-line (Bug#5960).
authorChong Yidong <cyd@stupidchicken.com>
Sat, 17 Apr 2010 00:28:19 +0000 (20:28 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 17 Apr 2010 00:28:19 +0000 (20:28 -0400)
* vc-hg.el (vc-hg-annotate-extract-revision-at-line): Expand file
name relative to the project root (Bug#5960).

lisp/ChangeLog
lisp/vc-hg.el

index fc9c471..8c0fbc4 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-17  Magnus Henoch  <magnus.henoch@gmail.com>
+
+       * vc-hg.el (vc-hg-annotate-extract-revision-at-line): Expand file
+       name relative to the project root (Bug#5960).
+
 2010-04-16  Glenn Morris  <rgm@gnu.org>
 
        * vc-git.el (vc-git-print-log): Doc fix.
index b6e1d39..ca83b7e 100644 (file)
@@ -340,7 +340,8 @@ Optional arg REVISION is a revision to annotate from."
       (if (match-beginning 3)
          (match-string-no-properties 1)
        (cons (match-string-no-properties 1)
-             (expand-file-name (match-string-no-properties 4)))))))
+             (expand-file-name (match-string-no-properties 4)
+                               (vc-hg-root default-directory)))))))
 
 (defun vc-hg-previous-revision (file rev)
   (let ((newrev (1- (string-to-number rev))))