diff options
| author | Dan Nicolaescu | 2008-11-24 09:28:49 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-11-24 09:28:49 +0000 |
| commit | c0203c8658c319a0a54cdb7d101b3240a8d39fff (patch) | |
| tree | a129b022d5be59adc424ef23fcfd37e7fb42555f | |
| parent | a2baab5c6d49187fec208b70629fd5e228c110ca (diff) | |
| download | emacs-c0203c8658c319a0a54cdb7d101b3240a8d39fff.tar.gz emacs-c0203c8658c319a0a54cdb7d101b3240a8d39fff.zip | |
(vc-hg-global-switches): Remove.
(vc-hg-state, vc-hg-working-revision, vc-hg-command): Undo
previous change.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/vc-hg.el | 18 |
2 files changed, 11 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6b40ec39f2b..7b835ca2dae 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-11-24 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * vc-hg.el (vc-hg-global-switches): Remove. | ||
| 4 | (vc-hg-state, vc-hg-working-revision, vc-hg-command): Undo | ||
| 5 | previous change. | ||
| 6 | |||
| 1 | 2008-11-23 Martin Rudalics <rudalics@gmx.at> | 7 | 2008-11-23 Martin Rudalics <rudalics@gmx.at> |
| 2 | 8 | ||
| 3 | * info-look.el (info-lookup): When Info buffer is visible on | 9 | * info-look.el (info-lookup): When Info buffer is visible on |
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el index 35ff589f9f0..aa11495441a 100644 --- a/lisp/vc-hg.el +++ b/lisp/vc-hg.el | |||
| @@ -116,12 +116,6 @@ | |||
| 116 | 116 | ||
| 117 | ;;; Customization options | 117 | ;;; Customization options |
| 118 | 118 | ||
| 119 | (defcustom vc-hg-program "hg" | ||
| 120 | "Name of the Hg executable." | ||
| 121 | :type 'string | ||
| 122 | :version "23.1" | ||
| 123 | :group 'vc) | ||
| 124 | |||
| 125 | (defcustom vc-hg-global-switches nil | 119 | (defcustom vc-hg-global-switches nil |
| 126 | "*Global switches to pass to any Hg command." | 120 | "*Global switches to pass to any Hg command." |
| 127 | :type '(choice (const :tag "None" nil) | 121 | :type '(choice (const :tag "None" nil) |
| @@ -180,8 +174,7 @@ If you want to force an empty list of arguments, use t." | |||
| 180 | (condition-case nil | 174 | (condition-case nil |
| 181 | ;; Ignore all errors. | 175 | ;; Ignore all errors. |
| 182 | (call-process | 176 | (call-process |
| 183 | vc-hg-program nil t nil | 177 | "hg" nil t nil "--cwd" (file-name-directory file) |
| 184 | "--cwd" (file-name-directory file) | ||
| 185 | "status" "-A" (file-name-nondirectory file)) | 178 | "status" "-A" (file-name-nondirectory file)) |
| 186 | ;; Some problem happened. E.g. We can't find an `hg' | 179 | ;; Some problem happened. E.g. We can't find an `hg' |
| 187 | ;; executable. | 180 | ;; executable. |
| @@ -212,8 +205,7 @@ If you want to force an empty list of arguments, use t." | |||
| 212 | (condition-case nil | 205 | (condition-case nil |
| 213 | ;; Ignore all errors. | 206 | ;; Ignore all errors. |
| 214 | (call-process | 207 | (call-process |
| 215 | vc-hg-program nil t nil | 208 | "hg" nil t nil "--cwd" (file-name-directory file) |
| 216 | "--cwd" (file-name-directory file) | ||
| 217 | "log" "-l1" (file-name-nondirectory file)) | 209 | "log" "-l1" (file-name-nondirectory file)) |
| 218 | ;; Some problem happened. E.g. We can't find an `hg' | 210 | ;; Some problem happened. E.g. We can't find an `hg' |
| 219 | ;; executable. | 211 | ;; executable. |
| @@ -605,9 +597,9 @@ REV is the revision to check out into WORKFILE." | |||
| 605 | 597 | ||
| 606 | (defun vc-hg-command (buffer okstatus file-or-list &rest flags) | 598 | (defun vc-hg-command (buffer okstatus file-or-list &rest flags) |
| 607 | "A wrapper around `vc-do-command' for use in vc-hg.el. | 599 | "A wrapper around `vc-do-command' for use in vc-hg.el. |
| 608 | The difference to vc-do-command is that this function always invokes | 600 | The difference to vc-do-command is that this function always invokes `hg', |
| 609 | `vc-hg-program', and that it passes `vc-hg-global-switches' to it before FLAGS." | 601 | and that it passes `vc-hg-global-switches' to it before FLAGS." |
| 610 | (apply 'vc-do-command (or buffer "*vc*") okstatus vc-hg-program file-or-list | 602 | (apply 'vc-do-command (or buffer "*vc*") okstatus "hg" file-or-list |
| 611 | (if (stringp vc-hg-global-switches) | 603 | (if (stringp vc-hg-global-switches) |
| 612 | (cons vc-hg-global-switches flags) | 604 | (cons vc-hg-global-switches flags) |
| 613 | (append vc-hg-global-switches | 605 | (append vc-hg-global-switches |