aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc-hg.el15
2 files changed, 12 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c4141905890..067f561293b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12009-01-15 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * vc-hg.el (vc-hg-diff): Pass relative file names. (Bug#1903)
4
12009-01-15 Martin Rudalics <rudalics@gmx.at> 52009-01-15 Martin Rudalics <rudalics@gmx.at>
2 6
3 * window.el (special-display-p): Revert 2009-01-14 change. 7 * window.el (special-display-p): Revert 2009-01-14 change.
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el
index 05a1ae5473d..d47df2a7b3f 100644
--- a/lisp/vc-hg.el
+++ b/lisp/vc-hg.el
@@ -44,8 +44,8 @@
44;; - state-heuristic (file) NOT NEEDED 44;; - state-heuristic (file) NOT NEEDED
45;; - dir-status (dir update-function) OK 45;; - dir-status (dir update-function) OK
46;; - dir-status-files (dir files ds uf) OK 46;; - dir-status-files (dir files ds uf) OK
47;; - dir-extra-headers (dir) OK 47;; - dir-extra-headers (dir) OK
48;; - dir-printer (fileinfo) OK 48;; - dir-printer (fileinfo) OK
49;; * working-revision (file) OK 49;; * working-revision (file) OK
50;; - latest-on-branch-p (file) ?? 50;; - latest-on-branch-p (file) ??
51;; * checkout-model (files) OK 51;; * checkout-model (files) OK
@@ -80,8 +80,8 @@
80;; - annotate-current-time () NOT NEEDED 80;; - annotate-current-time () NOT NEEDED
81;; - annotate-extract-revision-at-line () OK 81;; - annotate-extract-revision-at-line () OK
82;; TAG SYSTEM 82;; TAG SYSTEM
83;; - create-tag (dir name branchp) NEEDED 83;; - create-tag (dir name branchp) NEEDED
84;; - retrieve-tag (dir name update) NEEDED 84;; - retrieve-tag (dir name update) NEEDED
85;; MISCELLANEOUS 85;; MISCELLANEOUS
86;; - make-version-backups-p (file) ?? 86;; - make-version-backups-p (file) ??
87;; - repository-hostname (dirname) ?? 87;; - repository-hostname (dirname) ??
@@ -259,15 +259,16 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
259(defun vc-hg-diff (files &optional oldvers newvers buffer) 259(defun vc-hg-diff (files &optional oldvers newvers buffer)
260 "Get a difference report using hg between two revisions of FILES." 260 "Get a difference report using hg between two revisions of FILES."
261 (let* ((firstfile (car files)) 261 (let* ((firstfile (car files))
262 (cwd (if firstfile (file-name-directory firstfile)
263 (expand-file-name default-directory)))
262 (working (and firstfile (vc-working-revision firstfile)))) 264 (working (and firstfile (vc-working-revision firstfile))))
263 (when (and (equal oldvers working) (not newvers)) 265 (when (and (equal oldvers working) (not newvers))
264 (setq oldvers nil)) 266 (setq oldvers nil))
265 (when (and (not oldvers) newvers) 267 (when (and (not oldvers) newvers)
266 (setq oldvers working)) 268 (setq oldvers working))
267 (apply #'vc-hg-command (or buffer "*vc-diff*") nil 269 (apply #'vc-hg-command (or buffer "*vc-diff*") nil
268 (mapcar (lambda (file) (file-name-nondirectory file)) files) 270 (mapcar (lambda (file) (file-relative-name file cwd)) files)
269 "--cwd" (or (when firstfile (file-name-directory firstfile)) 271 "--cwd" cwd
270 (expand-file-name default-directory))
271 "diff" 272 "diff"
272 (append 273 (append
273 (vc-switches 'hg 'diff) 274 (vc-switches 'hg 'diff)