# HG changeset patch # User Sam Steingold # Date 1244837685 0 # Node ID cb4483f32179e93491736b98eb2fe1527c606d18 # Parent 2688fae5ee5680e9b2507e46c07fb694a77ee1af (vc-hg-log-switches): Add defcustom. (vc-hg-print-log): Use it. diff -r 2688fae5ee56 -r cb4483f32179 lisp/ChangeLog --- a/lisp/ChangeLog Fri Jun 12 12:51:20 2009 +0000 +++ b/lisp/ChangeLog Fri Jun 12 20:14:45 2009 +0000 @@ -1,3 +1,8 @@ +2009-06-12 Sam Steingold + + * vc-hg.el (vc-hg-log-switches): Add defcustom. + (vc-hg-print-log): Use it. + 2009-06-12 Kenichi Handa * international/eucjp-ms.el: Re-generated. diff -r 2688fae5ee56 -r cb4483f32179 lisp/vc-hg.el --- a/lisp/vc-hg.el Fri Jun 12 12:51:20 2009 +0000 +++ b/lisp/vc-hg.el Fri Jun 12 20:14:45 2009 +0000 @@ -211,6 +211,13 @@ ;;; History functions +(defcustom vc-hg-log-switches nil + "String or list of strings specifying switches for hg log under VC." + :type '(choice (const :tag "None" nil) + (string :tag "Argument String") + (repeat :tag "Argument List" :value ("") string)) + :group 'vc-hg) + (defun vc-hg-print-log (files &optional buffer) "Get change log associated with FILES." ;; `log-view-mode' needs to have the file names in order to function @@ -225,7 +232,7 @@ (let ((inhibit-read-only t)) (with-current-buffer buffer - (vc-hg-command buffer 0 files "log")))) + (apply 'vc-hg-command buffer 0 files "log" vc-hg-log-switches)))) (defvar log-view-message-re) (defvar log-view-file-re)