emacs-devel
[Top][All Lists]
Advanced

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

Re: vc-annotate: HG, change display, switch


From: Dmitry Gutov
Subject: Re: vc-annotate: HG, change display, switch
Date: Sat, 31 Oct 2015 15:08:13 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0

On 10/31/2015 02:48 PM, Uwe Brauer wrote:

Any  comments?

That leaves me to propose:

(defun vc-hg-annotate-command (file buffer &optional revision)
   "Execute \"hg annotate\" on FILE, inserting the contents in BUFFER.
Optional arg REVISION is a revision to annotate from."
   (apply #'vc-hg-command buffer 0 file "annotate" "-dq" "-u" "-n"
         (append (vc-switches 'hg 'annotate)
                  (if revision (list (concat "-r" revision))))))

Thanks for looking into this.

However with this switch the colour display does not work neither.

Could somebody who knows the code could please comment on this issue?

You also need to update vc-hg-annotate-re, to recognize the new output.

The value returned by vc-hg-annotate-time, which uses that regexp, affects the highlighting.



reply via email to

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