From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: limit the number of log entries displayed by C-x v l Date: Thu, 12 Nov 2009 18:21:56 -0800 (PST) Message-ID: <200911130221.nAD2Lu4q007527@godzilla.ics.uci.edu> References: <200911122319.nACNJvUn006154@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 1258079036 19094 80.91.229.12 (13 Nov 2009 02:23:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Nov 2009 02:23:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 13 03:23:49 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 1N8lpE-0001ur-Mh for ged-emacs-devel@m.gmane.org; Fri, 13 Nov 2009 03:23:48 +0100 Original-Received: from localhost ([127.0.0.1]:59207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8lpD-0000Nw-WB for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2009 21:23:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8lp7-0000Nc-J8 for emacs-devel@gnu.org; Thu, 12 Nov 2009 21:23:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8lp3-0000Mu-4J for emacs-devel@gnu.org; Thu, 12 Nov 2009 21:23:41 -0500 Original-Received: from [199.232.76.173] (port=48755 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8lp2-0000Mr-RX for emacs-devel@gnu.org; Thu, 12 Nov 2009 21:23:36 -0500 Original-Received: from paul-mcgann-v0.ics.uci.edu ([128.195.1.147]:53746) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N8lp2-0007x2-DK for emacs-devel@gnu.org; Thu, 12 Nov 2009 21:23:36 -0500 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by paul-mcgann-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id nAD2Lvba001149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Nov 2009 18:21:57 -0800 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nAD2Lu4q007527; Thu, 12 Nov 2009 18:21:56 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Thu, 12 Nov 2009 20:18:49 -0500") Original-Lines: 31 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: nAD2Lvba001149 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.125, required 5, autolearn=disabled, ALL_TRUSTED -1.44, SARE_MILLIONSOF 0.32) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:116919 Archived-At: Stefan Monnier writes: > > Logs for some big trees can be huge, the Linux one is millions of lines. > > Yes, this is a fairly serious problem. We need to refine the > `print-log' backend op to be able to control it somehow. E.g. in > vc-annotate, it'd be good to be able to get just the log message > corresponding to a particular commit. With the proposed backend change that just needs vc-annotate-show-log-revision-at-line to pass a 1 as the last argument to vc-print-log-internal. > For a generic `vc-print-log' operation where the user doesn't specify > any particular revision, I wonder what the best UI should be. What do > other front-ends (e.g. loggerhead, viewCVS, ...) do to cope with the > large number of log messages? Sorry, no idea. gitk seems to show all the entries, but it shows only the short log by default. > Maybe we should show just the first thousand or so by default and then > provide a button (and command) in log-view-mode to get more? That could work. It would work with the proposed backend change. C-x v l call would call the backend to show vc-log-show-entries, then the button would get the revision id for the last entry in the buffer, and it would then call the backend starting from that revision to request more entries.