diff options
| author | Sam Steingold | 2009-06-12 20:14:45 +0000 |
|---|---|---|
| committer | Sam Steingold | 2009-06-12 20:14:45 +0000 |
| commit | 02532fbc7992bcdf86baaf41ae4420f66109cb15 (patch) | |
| tree | b5673da7a8a8d862bb7e7e598df6ea840a45241e | |
| parent | 09856751db7d2decc1fb088a7871b7fb1610750d (diff) | |
| download | emacs-02532fbc7992bcdf86baaf41ae4420f66109cb15.tar.gz emacs-02532fbc7992bcdf86baaf41ae4420f66109cb15.zip | |
(vc-hg-log-switches): Add defcustom.
(vc-hg-print-log): Use it.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-hg.el | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bfdc0a4a6b8..4868c9f382a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-06-12 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * vc-hg.el (vc-hg-log-switches): Add defcustom. | ||
| 4 | (vc-hg-print-log): Use it. | ||
| 5 | |||
| 1 | 2009-06-12 Kenichi Handa <handa@m17n.org> | 6 | 2009-06-12 Kenichi Handa <handa@m17n.org> |
| 2 | 7 | ||
| 3 | * international/eucjp-ms.el: Re-generated. | 8 | * international/eucjp-ms.el: Re-generated. |
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el index d47df2a7b3f..26bf25cfc61 100644 --- a/lisp/vc-hg.el +++ b/lisp/vc-hg.el | |||
| @@ -211,6 +211,13 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches." | |||
| 211 | 211 | ||
| 212 | ;;; History functions | 212 | ;;; History functions |
| 213 | 213 | ||
| 214 | (defcustom vc-hg-log-switches nil | ||
| 215 | "String or list of strings specifying switches for hg log under VC." | ||
| 216 | :type '(choice (const :tag "None" nil) | ||
| 217 | (string :tag "Argument String") | ||
| 218 | (repeat :tag "Argument List" :value ("") string)) | ||
| 219 | :group 'vc-hg) | ||
| 220 | |||
| 214 | (defun vc-hg-print-log (files &optional buffer) | 221 | (defun vc-hg-print-log (files &optional buffer) |
| 215 | "Get change log associated with FILES." | 222 | "Get change log associated with FILES." |
| 216 | ;; `log-view-mode' needs to have the file names in order to function | 223 | ;; `log-view-mode' needs to have the file names in order to function |
| @@ -225,7 +232,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches." | |||
| 225 | (let ((inhibit-read-only t)) | 232 | (let ((inhibit-read-only t)) |
| 226 | (with-current-buffer | 233 | (with-current-buffer |
| 227 | buffer | 234 | buffer |
| 228 | (vc-hg-command buffer 0 files "log")))) | 235 | (apply 'vc-hg-command buffer 0 files "log" vc-hg-log-switches)))) |
| 229 | 236 | ||
| 230 | (defvar log-view-message-re) | 237 | (defvar log-view-message-re) |
| 231 | (defvar log-view-file-re) | 238 | (defvar log-view-file-re) |