From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: limit the number of log entries displayed by C-x v l Date: Fri, 20 Nov 2009 08:19:24 +0100 Organization: ThierryVolpiatto Message-ID: <87bpixk6ir.fsf@tux.homenetwork> References: <200911122319.nACNJvUn006154@godzilla.ics.uci.edu> <200911130221.nAD2Lu4q007527@godzilla.ics.uci.edu> <200911130502.nAD52OVv008802@godzilla.ics.uci.edu> <200911171344.nAHDis0c026133@godzilla.ics.uci.edu> <200911181819.nAIIJIUk009684@godzilla.ics.uci.edu> <873a4bc70c.fsf@tux.homenetwork> <200911200659.nAK6xpkt020046@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258702312 4319 80.91.229.12 (20 Nov 2009 07:31:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Nov 2009 07:31:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 20 08:31:45 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NBNy4-0003Fo-EM for ged-emacs-devel@m.gmane.org; Fri, 20 Nov 2009 08:31:44 +0100 Original-Received: from localhost ([127.0.0.1]:59379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBNy3-0006wj-Ge for ged-emacs-devel@m.gmane.org; Fri, 20 Nov 2009 02:31:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBNry-00045y-JK for emacs-devel@gnu.org; Fri, 20 Nov 2009 02:25:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBNrw-00045N-Jw for emacs-devel@gnu.org; Fri, 20 Nov 2009 02:25:25 -0500 Original-Received: from [199.232.76.173] (port=40281 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBNrw-00045I-6P for emacs-devel@gnu.org; Fri, 20 Nov 2009 02:25:24 -0500 Original-Received: from ey-out-1920.google.com ([74.125.78.147]:41714) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBNrv-00009N-ME for emacs-devel@gnu.org; Fri, 20 Nov 2009 02:25:23 -0500 Original-Received: by ey-out-1920.google.com with SMTP id 3so994765eyh.34 for ; Thu, 19 Nov 2009 23:25:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :organization:references:face:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=VJdVh/+CdkphdgnIsGZ4BoFb/ZgPKUvvpD/lQGyw3HU=; b=PPj2linsxVFMT3XJmz2ul6t7htA1z4mXXAq/v4Vf2gGGNA+gOD3VQ5MS1DSc/p951T UhJDWwz2F+VNKLatPFzqgfAfUwMhaHRazUGHx5I7c0dMGic/iO9n2Ha7O8raYgQJw/PD /I2xeM8svFYDG+KDmH1EWeE63xIyYajRoc7CA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:face:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=Zt50/5zj8vvz0FXbi6tNs00zVw2CD2RPQQxL4UBao++iGkMe7w4v+c0KQSfmOus/1I mer9Jyjq103HIXZrNupwqdQbcFt2t/h+2ktLPwWtsmV/N0PsCJcKXcWMuB8gnkYTsYnC 8Z8FrRVafSTXltdmcuKHoj050sL77bFG6tVFE= Original-Received: by 10.213.1.5 with SMTP id 5mr2453468ebd.22.1258701922810; Thu, 19 Nov 2009 23:25:22 -0800 (PST) Original-Received: from tux.homenetwork (23.77.197-77.rev.gaoland.net [77.197.77.23]) by mx.google.com with ESM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<200911200659.nAK6xpkt020046@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Thu, 19 Nov 2009 22:59:51 -0800 (PST)") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Fri, 20 Nov 2009 02:31:37 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117335 Archived-At: Dan Nicolaescu writes: > Thierry Volpiatto writes: > > > Stefan Monnier 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