From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.bugs Subject: vc with rcs does not generate correct versions Date: Mon, 29 Oct 2007 10:00:56 +0100 Message-ID: <87myu2gurb.fsf@mat.ucm.es> Reply-To: Uwe Brauer NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1193654195 27598 80.91.229.12 (29 Oct 2007 10:36:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2007 10:36:35 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 29 11:36:37 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ImRyq-0007NR-Hg for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Oct 2007 11:36:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImRyg-0002qi-0F for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Oct 2007 06:36:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImQUc-0003Xm-JJ for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2007 05:01:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImQUb-0003WO-KW for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2007 05:01:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImQUb-0003W3-Aj for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2007 05:01:05 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ImQUZ-00081N-Q8 for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2007 05:01:04 -0400 Original-Received: by nf-out-0910.google.com with SMTP id f5so1392014nfh for ; Mon, 29 Oct 2007 02:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:x-mailer:x-hashcash:from:to:subject:reply-to:date:message-id:user-agent:mime-version:content-type:sender; bh=+LSK2lg0QhyVTGwf8ER9hAsPdlsUlLOXoUzkRTo5sAo=; b=DtFZUfdE8gNr4xV+Z7fUO7P6bQWrzZa+mk8QSSxXehj8vSLEjCqjyMQgRYpRfcxwZJQ1gH5FFEp2jRQ3yM7wK/I/AdLdD7kXIwoPXQ5Ih9FMOVSvTL/mye3VPwbN7a5IaT9N/yMt0Jrz8D7fUh2JC6c6aTg7D20BiUELGfAJiAE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:x-mailer:x-hashcash:from:to:subject:reply-to:date:message-id:user-agent:mime-version:content-type:sender; b=uscM/Ev29xC6Or9es+Rd0Ousrz8DJXCpITX96TncWFy+OPg5wx/LiTJ6x/l4EZ2gm0ydl9D2bMVca4IkTLDBaDro2SFXQ5dmwgwigaBWSBeWVWFQGz9K/09tPlNWxIb90+lyLgURLF94w587Lw+PK5DRRZhucng2cq6jlGgrY5U= Original-Received: by 10.86.1.1 with SMTP id 1mr4357873fga.1193648459677; Mon, 29 Oct 2007 02:00:59 -0700 (PDT) Original-Received: from Gilgamesch ( [147.96.6.137]) by mx.google.com with ESMTPS id d13sm11878083fka.2007.10.29.02.00.58 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Oct 2007 02:00:58 -0700 (PDT) X-Mailer: 21.4 (patch 19) "Constant Variable" XEmacs Lucid (via feedmail 11-beta-1 I) X-Hashcash: 1:20:071029:bug-gnu-emacs@gnu.org::Z7P2CBtxKKPxp02Y:00000000000000000000000000000000000000005B6N User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Mon, 29 Oct 2007 06:36:12 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16862 Archived-At: --=-=-= Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2007-01-16 on palmer, modified by Debian configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--with-x=yes' '--with-x-toolkit=athena' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -fno-stack-protector -O2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Hello I am on Kubuntu Feisty, using RCS 5.7-18. The problem I report seems also to happen in Xemacs 21.4.19 which makes me think that the problem lies in the RCS. I do the following: emacs -q. Open a new text file, test.txt. Add 1 line register the file, execute vc-register. Add a new line, execute vc-toggle. Now the modeline tells me I am in version 1.2 co -p1 test.txt gives me as output the current file. but co -p2 test.txt tells me revision 2 absent I add a 3rd line and execute vc-toggle. same result. co -p3 test.txt tells me revision 2 absent Now I use (setq debug-on-error t) vc-version-other-window and I obtain an error message which I attach. The error is not surprising sind co did not return any version above 1!!! Recent input: o 2 C-x C-b C-x o C-x b t . M-x s e t SPC v a r d e b u o n e t C-x 1 M-x v c SPC o v o 2 C-x C-w b u g r c s - b u g M-x e m a c s SPC r e r e p o r t SPC e m Recent messages: Checking out /home/oub/testrc-emacs/test.txt.~2~... vc-do-command: Running co...FAILED (status 1) Making completion list... Checking out /home/oub/testrc-emacs/test.txt.~2~... Loading debug...done Entering debugger... [2 times] Wrote /home/oub/testrc-emacs/rcs-bug Making completion list... Loading emacsbug...done --=-=-= Content-Disposition: inline; filename=test.txt This the first line. Register: We have version 1.1, we add that line, now we toggle We are in version 1.2 and we add 3rd line, now we toggle --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename*=us-ascii''test.txt%2cv head 1.3; access; symbols; locks oub:1.3; strict; comment @# @; 1.3 date 2007.10.29.08.43.28; author oub; state Exp; branches; next 1.2; 1.2 date 2007.10.29.08.42.33; author oub; state Exp; branches; next 1.1; 1.1 date 2007.10.29.08.41.52; author oub; state Exp; branches; next ; desc @@ 1.3 log @third line added @ text @This the first line. Register: We have version 1.1, we add that line, now we toggle We are in version 1.2 and we add 3rd line, now we toggle@ 1.2 log @The second line has been added. @ text @d2 2 a3 1 We have version 1.1, we add that line, now we toggle@ 1.1 log @Initial revision @ text @d1 2 a2 1 This the first line. Register:@ --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=rcs-bug Content-Transfer-Encoding: base64 RGVidWdnZXIgZW50ZXJlZC0tTGlzcCBlcnJvcjogKGVycm9yICJSdW5uaW5nIGNvLi4uRkFJ TEVEIChzdGF0dXMgMSkiKQogIHNpZ25hbChlcnJvciAoIlJ1bm5pbmcgY28uLi5GQUlMRUQg KHN0YXR1cyAxKSIpKQogIGVycm9yKCJSd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