]> code.delx.au - gnu-emacs/commitdiff
(vc-hg-log-switches): Add defcustom.
authorSam Steingold <sds@gnu.org>
Fri, 12 Jun 2009 20:14:45 +0000 (20:14 +0000)
committerSam Steingold <sds@gnu.org>
Fri, 12 Jun 2009 20:14:45 +0000 (20:14 +0000)
(vc-hg-print-log): Use it.

lisp/ChangeLog
lisp/vc-hg.el

index bfdc0a4a6b8fb2b84a56836cd7ca44bb91df4248..4868c9f382a3afce04e808da92366d13032c3f7c 100644 (file)
@@ -1,3 +1,8 @@
+2009-06-12  Sam Steingold  <sds@gnu.org>
+
+       * vc-hg.el (vc-hg-log-switches): Add defcustom.
+       (vc-hg-print-log): Use it.
+
 2009-06-12  Kenichi Handa  <handa@m17n.org>
 
        * international/eucjp-ms.el: Re-generated.
index d47df2a7b3f0428ebeb7bbe8d332772d96606aea..26bf25cfc61fa838db3dea9e0d7a23df01f9a290 100644 (file)
@@ -211,6 +211,13 @@ If nil, use the value of `vc-diff-switches'.  If t, use no switches."
 
 ;;; 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 @@ If nil, use the value of `vc-diff-switches'.  If t, use no switches."
   (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)