emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/vc-hg.el,v


From: Glenn Morris
Subject: [Emacs-diffs] Changes to emacs/lisp/vc-hg.el,v
Date: Thu, 20 Nov 2008 02:43:46 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Glenn Morris <gm>       08/11/20 02:43:46

Index: vc-hg.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/vc-hg.el,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -b -r1.87 -r1.88
--- vc-hg.el    27 Oct 2008 07:21:48 -0000      1.87
+++ vc-hg.el    20 Nov 2008 02:43:45 -0000      1.88
@@ -126,6 +126,20 @@
   :version "22.2"
   :group 'vc)
 
+(defcustom vc-hg-diff-switches
+  t                           ; Hg doesn't support common args like -u
+  "String or list of strings specifying extra switches for Hg diff under VC.
+If nil, use the value of `vc-diff-switches'.
+If you want to force an empty list of arguments, use t."
+  :type '(choice (const :tag "Unspecified" nil)
+                (const :tag "None" t)
+                (string :tag "Argument String")
+                (repeat :tag "Argument List"
+                        :value ("")
+                        string))
+  :version "23.1"
+  :group 'vc)
+
 
 ;;; Properties of the backend
 
@@ -262,6 +276,7 @@
                       (expand-file-name default-directory))
           "diff"
           (append
+           (vc-switches (if vc-hg-diff-switches 'hg) 'diff)
            (when oldvers
              (if newvers
                  (list "-r" oldvers "-r" newvers)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]