emacs-devel
[Top][All Lists]
Advanced

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

Re: limit the number of log entries displayed by C-x v l


From: Thierry Volpiatto
Subject: Re: limit the number of log entries displayed by C-x v l
Date: Fri, 20 Nov 2009 08:19:24 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux)

Dan Nicolaescu <address@hidden> writes:

> Thierry Volpiatto <address@hidden> writes:
>
>   > Stefan Monnier <address@hidden> writes:
>   > 
>   > >>> Having tried it on Bzr I see that it's still sufficiently slow with 
> that
>   > >>> backend, that I might prefer to see the complete log so I can then
>   > >>> navigate it to see the various revisions I'm interested in, rather 
> than
>   > >>> get a single-comment N times.
>   > >> Then one can just do C-x v l ...
>   > >
>   > > Good point.
>   > >
>   > >> The reason I found your idea to show a single entry interesting: with
>   > >> the limiting of C-x v l output that we do now by default, you can ask
>   > >> for a log in vc-annotate and not get it if the log entry is old enough.
>   > >> It's rather nice to see exactly the entry you asked for.
>   > >> So what should we do?
>   > >
>   > > Change vc-annotate's code so that if the file's log is already displayed
>   > > in the *vc-change-log* buffer, it just jumps to the appropriate entry,
>   > > otherwise it does what your code did (i.e. ask the backend for just
>   > > that revision's log).
>   > 
>   > Have a look at xhg-annotate mode in DVC (screenshot).
>   > http://tinyurl.com/ycen32l
>
> That seems to show a buffer with both the diff and the log.
> Why is that a good idea?  What mode does it use?

The mode is xhg-annotate-mode, it is part of DVC
http://www.xsteve.at/prg/emacs_dvc/
The file is xhg-annotate.el

It does what hg annotate does but interactively:

,----
| From current file under hg control, run xhg-annotate in one buffer
| and xhg-log in the other buffer at the revision corresponding to current line
| of current file.
| once in the xhg-annotate buffer you can navigate to the different line
| showing at each movement the xhg-log output corresponding to revision.
`----

See hg help annotate.

About C-x v l, see also xhg-log, that use prefix arg to reduce number of
revisions to show, or to show from rev number x to rev number y.


,----[ C-h f xhg-log RET ]
| xhg-log is an interactive compiled Lisp function in `xhg.el'.
| 
| (xhg-log &optional R1 R2 SHOW-PATCH FILE)
| 
| Run hg log.
| When run interactively, the prefix argument decides, which parameters are 
queried from the user.
| C-u      : Show patches also, use all revisions
| C-u C-u  : Show patches also, ask for revisions
| positive : Don't show patches, ask for revisions.
| negative : Don't show patches, limit to n revisions.
| 
| ===*===*===*===*===*===*===*===*===*===*===
`----


-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France




reply via email to

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