]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-hg-diff): Fix last patch: do not change directory.
authorSam Steingold <sds@gnu.org>
Wed, 18 Nov 2009 19:12:23 +0000 (19:12 +0000)
committerSam Steingold <sds@gnu.org>
Wed, 18 Nov 2009 19:12:23 +0000 (19:12 +0000)
lisp/ChangeLog
lisp/vc-hg.el

index d8b01c73c030d5ff170b7b7df7e5f12735e9f7eb..fee3587d90d31b9e749d249028cd789a647d299c 100644 (file)
@@ -1,3 +1,7 @@
+2009-11-18  Bernhard Herzog  <bernhard.herzog@intevation.de>
+
+       * vc-hg.el (vc-hg-diff): Fix last patch: do not change directory.
+
 2009-11-18  Juanma Barranquero  <lekktu@gmail.com>
 
        * font-setting.el (font-use-system-font): Declare for byte-compiler.
index 42bdd4185e35c1566308196ac7c0aa8cb1b71c32..ab4bdab8c500408caa851b92e80fa649c87051ae 100644 (file)
@@ -276,16 +276,12 @@ If nil, use the value of `vc-diff-switches'.  If t, use no switches."
 (defun vc-hg-diff (files &optional oldvers newvers buffer)
   "Get a difference report using hg between two revisions of FILES."
   (let* ((firstfile (car files))
-         (cwd (if firstfile (file-name-directory firstfile)
-                (expand-file-name default-directory)))
          (working (and firstfile (vc-working-revision firstfile))))
     (when (and (equal oldvers working) (not newvers))
       (setq oldvers nil))
     (when (and (not oldvers) newvers)
       (setq oldvers working))
-    (apply #'vc-hg-command (or buffer "*vc-diff*") nil
-           (mapcar (lambda (file) (file-relative-name file cwd)) files)
-           "diff"
+    (apply #'vc-hg-command (or buffer "*vc-diff*") nil files "diff"
            (append
             (vc-switches 'hg 'diff)
             (when oldvers