From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juliusz Chroboczek Newsgroups: gmane.emacs.devel Subject: Re: Limitations of Emacs' vc when using modern backends Date: Thu, 15 Dec 2005 15:59:12 +0100 Message-ID: <7ihd9a76f3.fsf@lanthane.pps.jussieu.fr> References: <7i8xunt9ub.fsf@lanthane.pps.jussieu.fr> <87wti73ue7.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134671114 9890 80.91.229.2 (15 Dec 2005 18:25:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2005 18:25:14 +0000 (UTC) Cc: Juliusz Chroboczek , Andre Spiegel , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 15 19:25:11 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Emxmu-0003Ux-Lh for ged-emacs-devel@m.gmane.org; Thu, 15 Dec 2005 19:25:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EmxnZ-00070N-8B for ged-emacs-devel@m.gmane.org; Thu, 15 Dec 2005 13:25:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EmuxC-0002DU-80 for emacs-devel@gnu.org; Thu, 15 Dec 2005 10:23:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Emuby-0004V6-Rl for emacs-devel@gnu.org; Thu, 15 Dec 2005 10:01:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Emuai-0003uW-Be for emacs-devel@gnu.org; Thu, 15 Dec 2005 10:00:23 -0500 Original-Received: from [134.157.0.129] (helo=shiva.jussieu.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Emucm-00080l-7Q; Thu, 15 Dec 2005 10:02:29 -0500 Original-Received: from hydrogene.pps.jussieu.fr (hydrogene.pps.jussieu.fr [134.157.168.1]) by shiva.jussieu.fr (8.13.5/jtpda-5.4) with ESMTP id jBFExDaR048582 ; Thu, 15 Dec 2005 15:59:13 +0100 (CET) X-Ids: 166 Original-Received: from lanthane.pps.jussieu.fr (lanthane.pps.jussieu.fr [134.157.168.57]) by hydrogene.pps.jussieu.fr (8.13.4/jtpda-5.4) with ESMTP id jBFExC0J011686 ; Thu, 15 Dec 2005 15:59:12 +0100 Original-Received: from jch by lanthane.pps.jussieu.fr with local (Exim 4.60) (envelope-from ) id 1EmuZc-0001Yg-FU; Thu, 15 Dec 2005 15:59:12 +0100 Original-To: Stefan Monnier In-Reply-To: <87wti73ue7.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 14 Dec 2005 22:37:06 -0500") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.7.2 (shiva.jussieu.fr [134.157.0.166]); Thu, 15 Dec 2005 15:59:14 +0100 (CET) X-Antivirus: scanned by sophie at shiva.jussieu.fr X-Miltered: at shiva.jussieu.fr with ID 43A184C1.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! 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:47793 Archived-At: >> (3) Darcs identifies revisions by a 65-character long hash of a bunch >> of data, which is not something you want to type. Because of that, >> vc-darcs allows identifying a revision by a number of different means >> (see vc-darcs-rev-to-hash if you want the gory details). > Is this specific to vc-darcs or to darcs? Could you show what it > does concretely? Right now, the penultimate revision of vc-darcs.el happens to be 20051116215244-4cc09-4d8edc6c60cacc62a56bb4480ee9cd80be414c18 Obviously, we don't require the user to remember this; what we do is that we allow the user to type: - any prefix of the revision hash; - any prefix of the log message. If multiple revisions match, the latest one is chosen. (I'm simplifying somewhat, but that will do for the discussion at hand.) So I'd usually type ``Update version number to 1.6'', or ``Update version'' or even just ``Update''. With the current version of vc-darcs, I end up with multiple buffers called vc-darcs.el~Update vc-darcs.el~Update version etc. What I'm asking is the means to have vc-darcs.el normalise such non-canonical revision identifiers to the canonical hash. Juliusz