aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-03-10 00:32:27 -0800
committerGlenn Morris2011-03-10 00:32:27 -0800
commit5ceaac0c61ab70280a67588eeb8536fcddc3f9be (patch)
tree26609e3b40c23a6d3bddff9231cbf44052f29467
parent02da65ff3a35a36e86419a3494286a1eba233e89 (diff)
downloademacs-5ceaac0c61ab70280a67588eeb8536fcddc3f9be.tar.gz
emacs-5ceaac0c61ab70280a67588eeb8536fcddc3f9be.zip
* lisp/vc/vc-hg.el (vc-hg-pull, vc-hg-merge-branch): Use vc-hg-program.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/vc/vc-hg.el7
2 files changed, 6 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c8890a926be..da61e7025ad 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12011-03-10 Glenn Morris <rgm@gnu.org> 12011-03-10 Glenn Morris <rgm@gnu.org>
2 2
3 * vc/vc-hg.el (vc-hg-pull, vc-hg-merge-branch): Use vc-hg-program.
4
3 * vc/vc-git.el (vc-git-program): New option. 5 * vc/vc-git.el (vc-git-program): New option.
4 (vc-git-branches, vc-git-pull, vc-git-merge-branch, vc-git-command) 6 (vc-git-branches, vc-git-pull, vc-git-merge-branch, vc-git-command)
5 (vc-git--call): Use it. 7 (vc-git--call): Use it.
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index d283c39362a..4ac7ef15fc7 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -663,14 +663,15 @@ then attempts to update the working directory."
663 (let* ((root (vc-hg-root default-directory)) 663 (let* ((root (vc-hg-root default-directory))
664 (buffer (format "*vc-hg : %s*" (expand-file-name root))) 664 (buffer (format "*vc-hg : %s*" (expand-file-name root)))
665 (command "pull") 665 (command "pull")
666 (hg-program "hg") 666 (hg-program vc-hg-program)
667 ;; Fixme: before updating the working copy to the latest 667 ;; Fixme: before updating the working copy to the latest
668 ;; state, should check if it's visiting an old revision. 668 ;; state, should check if it's visiting an old revision.
669 (args '("-u"))) 669 (args '("-u")))
670 ;; If necessary, prompt for the exact command. 670 ;; If necessary, prompt for the exact command.
671 (when prompt 671 (when prompt
672 (setq args (split-string 672 (setq args (split-string
673 (read-shell-command "Run Hg (like this): " "hg pull -u" 673 (read-shell-command "Run Hg (like this): "
674 (format "%s pull -u" hg-program)
674 'vc-hg-history) 675 'vc-hg-history)
675 " " t)) 676 " " t))
676 (setq hg-program (car args) 677 (setq hg-program (car args)
@@ -685,7 +686,7 @@ then attempts to update the working directory."
685This runs the command \"hg merge\"." 686This runs the command \"hg merge\"."
686 (let* ((root (vc-hg-root default-directory)) 687 (let* ((root (vc-hg-root default-directory))
687 (buffer (format "*vc-hg : %s*" (expand-file-name root)))) 688 (buffer (format "*vc-hg : %s*" (expand-file-name root))))
688 (apply 'vc-do-async-command buffer root "hg" '("merge")) 689 (apply 'vc-do-async-command buffer root vc-hg-program '("merge"))
689 (vc-set-async-update buffer))) 690 (vc-set-async-update buffer)))
690 691
691;;; Internal functions 692;;; Internal functions