all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: emacs-devel@gnu.org
Subject: Re: vc-annotate: HG, change display, switch
Date: Sat, 31 Oct 2015 15:08:13 +0200	[thread overview]
Message-ID: <5634BD3D.8090205@yandex.ru> (raw)
In-Reply-To: <87oaffqk59.fsf@mat.ucm.es>

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	other threads:[~2015-10-31 13:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-31 12:48 vc-annotate: HG, change display, switch Uwe Brauer
2015-10-31 13:08 ` Dmitry Gutov [this message]
2015-10-31 18:11   ` Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5634BD3D.8090205@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.