unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andre Spiegel <spiegel@gnu.org>
Cc: rms@gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>,
	emacs-devel@gnu.org
Subject: Re: Limitations of Emacs' vc when using modern backends
Date: Thu, 15 Dec 2005 09:37:44 -0500	[thread overview]
Message-ID: <1134657464.23436.74.camel@localhost> (raw)
In-Reply-To: <7i8xunt9ub.fsf@lanthane.pps.jussieu.fr>

Juliusz, [ RMS, please see comments at the end ]

> 1. It should be possible for a backend to override
> vc-previous-version.

Agreed, it surely has to be backend-dependent.

> (2) CVS versions files, while modern systems version trees; the effect
> is that the correct ``previous version'' depends on the file name.

That's also reasonable.  Out of curiosity, I wonder whether that is
really the only place you came across where "versioning files" and
"versioning trees" conflict?  I would expect that there are more places,
and vc-previous-version sounds like a pretty inocuous, although no doubt
relevant spot.

> I believe that the functionality of vc-darcs-rev-to-hash (getting a
> canonical revision identifier for a given revision identifier) should
> be moved into vc itself, and called whenever vc gets a revision from
> the user.  The default implementation would just be the identity, but
> it should be possible for a backend to override it.

Although the hash identifier seems rather specific to Darcs, I can see
how this could be useful for other backends -- you can also refer to CVS
and RCS revisions symbolically (both branches and individual revisions),
and it would be nice to canonicalize those too (turning them into real
version numbers), if only optionally.  If this is done, auto-completion
for symbolic revision names would be a logical next step (but certainly
not now).

So your suggested changes seem very low-impact to me (they would be
trivial from the perspective of other backends).  I don't see a reason
not to make them right now, but perhaps RMS should have the final word
on this.  Richard?

      parent reply	other threads:[~2005-12-15 14:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-15  1:42 Limitations of Emacs' vc when using modern backends Juliusz Chroboczek
2005-12-15  3:37 ` Stefan Monnier
2005-12-15 14:59   ` Juliusz Chroboczek
2005-12-15 17:33     ` Stefan Monnier
2005-12-15 17:55       ` Juliusz Chroboczek
2005-12-15 20:24         ` Stefan Monnier
2005-12-15 14:37 ` Andre Spiegel [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1134657464.23436.74.camel@localhost \
    --to=spiegel@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).