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: VC command for showing outgoing changes Date: Tue, 13 Oct 2009 13:24:17 -0700 (PDT) Message-ID: <200910132024.n9DKOHGj015040@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 1255465600 12308 80.91.229.12 (13 Oct 2009 20:26:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2009 20:26:40 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 13 22:26:30 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 1Mxnwc-0006Vp-Ii for ged-emacs-devel@m.gmane.org; Tue, 13 Oct 2009 22:26:06 +0200 Original-Received: from localhost ([127.0.0.1]:41316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mxnwb-0002nm-RK for ged-emacs-devel@m.gmane.org; Tue, 13 Oct 2009 16:26:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxnwV-0002m4-3H for emacs-devel@gnu.org; Tue, 13 Oct 2009 16:25:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxnwQ-0002jo-7k for emacs-devel@gnu.org; Tue, 13 Oct 2009 16:25:58 -0400 Original-Received: from [199.232.76.173] (port=34398 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxnwQ-0002jl-2k for emacs-devel@gnu.org; Tue, 13 Oct 2009 16:25:54 -0400 Original-Received: from paul-mcgann-v0.ics.uci.edu ([128.195.1.147]:50683) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MxnwP-0000Cw-CN for emacs-devel@gnu.org; Tue, 13 Oct 2009 16:25:53 -0400 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 n9DKOHl2013132 for ; Tue, 13 Oct 2009 13:24:17 -0700 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n9DKOHGj015040; Tue, 13 Oct 2009 13:24:17 -0700 (PDT) Original-Lines: 27 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: n9DKOHl2013132 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) 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:116116 Archived-At: It would be nice to have a VC command for showing the outgoing changes for distributed VC systems (i.e. the log of the changes that will be pushed when you do a VC push). Let's call this method vc-outgoing (name suggestions are welcome). vc-hg-outgoing does this, but it's only for mercurial, it would be good to have a generic method for doing such a thing. vc-print-log uses modes derived from log-view-mode. vc-outgoing cannot quite use that because most commands that are defined for log-view-mode do not make sense (annotate, next/previous file, show version). Some commands that would make sense for vc-outgoing: show the diff, push, create a bundle, send by email. One thing we can do is to create a log-view-base-mode and have log-view-mode and log-view-outgoing-mode derive from this mode, and have log-view-mode and log-view-outgoing-mode define their own commands and key bindings. Something similar can be done for incoming changes. Ideas, opinions, suggestions etc are welcome (code would be even better).