mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
(vc-hg-diff): Use vc-hg-command.
This commit is contained in:
parent
3f0257cb93
commit
d7927b9f48
2 changed files with 9 additions and 4 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2007-07-20 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
* vc-hg.el (vc-hg-diff): Use vc-hg-command.
|
||||
|
||||
2007-07-20 Vinicius Jose Latorre <viniciusjl@ig.com.br>
|
||||
|
||||
* ps-print.el: Problem with foreground and background color when
|
||||
|
|
|
|||
|
|
@ -282,15 +282,16 @@
|
|||
(setq oldvers nil))
|
||||
(if (and (not oldvers) newvers)
|
||||
(setq oldvers working))
|
||||
(apply 'call-process "hg" nil (or buffer "*vc-diff*") nil
|
||||
"--cwd" (file-name-directory (car files)) "diff"
|
||||
(apply #'vc-hg-command (or buffer "*vc-diff*") nil
|
||||
(mapcar (lambda (file) (file-name-nondirectory file)) files)
|
||||
"--cwd" (file-name-directory (car files))
|
||||
"diff"
|
||||
(append
|
||||
(if oldvers
|
||||
(if newvers
|
||||
(list "-r" oldvers "-r" newvers)
|
||||
(list "-r" oldvers))
|
||||
(list ""))
|
||||
(mapcar (lambda (file) (file-name-nondirectory file)) files)))))
|
||||
(list ""))))))
|
||||
|
||||
(defun vc-hg-diff-tree (file &optional oldvers newvers buffer)
|
||||
(vc-hg-diff (list file) oldvers newvers buffer))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue