>From d686409500b852af7d8936a57d8fa70e1b22eeaa Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 8 May 2016 19:38:54 +0000 Subject: [PATCH] Modify docstring of vc-hg-symbolic-revision-styles and vc-hg-use-file-version-for-mode-line-version * vc-hg.el (vc-hg-symbolic-revision-styles): Add a phrase to the docstring, which explains how to obtain the old behavior of the modeline. * vc-hg.el (vc-hg-use-file-version-for-mode-line-version): Add a phrase to the docstring: When this variable is t, the modeline contains revision information for the visited file, however in order to obtain the old behavior of the modeline, the variable vc-hg-symbolic-revision-styles needs to be modified. --- lisp/vc/vc-hg.el | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el index 5fb93bc..472e5fc 100644 --- a/lisp/vc/vc-hg.el +++ b/lisp/vc/vc-hg.el @@ -273,7 +273,12 @@ vc-hg-symbolic-revision-styles string. The function is called with `default-directory' set to within the repository. -If no list entry produces a useful revision, return `nil'." +If no list entry produces a useful revision, return `nil'. + +If you want the old behaviour of `vc-hg.el' (see the variable +'vc-hg-use-file-version-for-mode-line-version') namely that +the modline displays [Hg-revnumber], then you must set the variable +to the list (\"{rev}\")." :type '(repeat (choice (const :tag "Active bookmark" 'bookmark) (string :tag "Hg template") @@ -284,8 +289,10 @@ vc-hg-symbolic-revision-styles (defcustom vc-hg-use-file-version-for-mode-line-version nil "When enabled, the modeline contains revision information for the visited file. When not, the revision in the modeline is for the repository -working copy. `nil' is the much faster setting for -large repositories." +working copy. `nil' is the much faster setting for large +repositories. If you want the old behaviour of `vc-hg.el', namely that +the modline displays [Hg-revnumber], then you must set the variable +`vc-hg-symbolic-revision-styles' to the list (\"{rev}\")." :type 'boolean :version "25.2" :group 'vc-hg) -- 2.3.7