all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: emacs-devel@gnu.org
Subject: Re: VC command for showing outgoing changes
Date: Tue, 13 Oct 2009 16:52:18 -0400	[thread overview]
Message-ID: <jwv4oq3c99x.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <200910132024.n9DKOHGj015040@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Tue, 13 Oct 2009 13:24:17 -0700 (PDT)")

> 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).

I think before that we should have support for a `push' backend operation.

> 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.

Agreed.

> 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).

The next/previous file seem to make just as much (or as little) sense
for this as for log-view.  Also, why don't annotate and show-version
make sense?

> 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.

Since each backend typically creates its own vc-<foo>-log-view-mode,
that tend to lead to the need for "multiple inheritance" in
define-derived-mode.  Given the lack of support for such a monster right
now, we should probably stick to something simpler, e.g. add
a log-view-outgoing binary var, behaving kind of like a minor-mode and
controlling availability of some extra bindings.

> Something similar can be done for incoming changes.

Indeed.


        Stefan




  reply	other threads:[~2009-10-13 20:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-13 20:24 VC command for showing outgoing changes Dan Nicolaescu
2009-10-13 20:52 ` Stefan Monnier [this message]
2009-10-13 21:15   ` Dan Nicolaescu
2009-10-13 21:24     ` Giorgos Keramidas
2009-10-14  2:10     ` Stefan Monnier
2009-12-05 19:45   ` Dan Nicolaescu
2009-12-05 19:52     ` Dan Nicolaescu
2009-12-05 20:53       ` Stefan Monnier
2009-12-05 21:35         ` Stefan Monnier
2009-12-06  3:28         ` Dan Nicolaescu
2009-12-06  8:33         ` Dan Nicolaescu
2009-12-07  1:40           ` Stefan Monnier
2009-12-07  9:06             ` Dan Nicolaescu
2010-01-01 18:56             ` Dan Nicolaescu

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=jwv4oq3c99x.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dann@ics.uci.edu \
    --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.