* vc with rcs does not generate correct versions
@ 2007-10-29 9:00 Uwe Brauer
2007-10-29 13:58 ` Thien-Thi Nguyen
[not found] ` <mailman.2718.1193666376.18990.bug-gnu-emacs@gnu.org>
0 siblings, 2 replies; 4+ messages in thread
From: Uwe Brauer @ 2007-10-29 9:00 UTC (permalink / raw)
To: bug-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 2564 bytes --]
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:
<tab> o <tab> <return> 2 <return> C-x C-b C-x o <down>
<down> <down> <down> <return> C-x b t <tab> . <tab>
<return> M-x s e t SPC v a r <tab> <return> d e b <tab>
u <tab> o n <tab> e <tab> <return> t <return> C-x 1
M-x v c SPC o <tab> <backspace> v <tab> o <tab> <return>
2 <return> C-x C-w b u g <M-backspace> r c s - b u
g <return> M-x e m a c s SPC r e <tab> <M-backspace>
<M-backspace> r e p o <tab> r t SPC e m <tab> <ret
urn>
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
[-- Attachment #2: test.txt --]
[-- Type: text/plain, Size: 141 bytes --]
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
[-- Attachment #3: test.txt,v --]
[-- Type: application/octet-stream, Size: 667 bytes --]
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:@
[-- Attachment #4: rcs-bug --]
[-- Type: application/octet-stream, Size: 854 bytes --]
Debugger entered--Lisp error: (error "Running co...FAILED (status 1)")
signal(error ("Running co...FAILED (status 1)"))
error("Running %s...FAILED (%s)" "co" "status 1")
vc-do-command(#<buffer *temp file*> 0 "co" "/home/oub/testrc-emacs/test.txt,v" "-q" nil "-p2")
apply(vc-do-command #<buffer *temp file*> 0 "co" "/home/oub/testrc-emacs/test.txt,v" "-q" nil "-p2" nil)
vc-rcs-checkout("/home/oub/testrc-emacs/test.txt" nil "2" "/home/oub/testrc-emacs/test.txt.~2~")
apply(vc-rcs-checkout ("/home/oub/testrc-emacs/test.txt" nil "2" "/home/oub/testrc-emacs/test.txt.~2~"))
vc-call-backend(RCS checkout "/home/oub/testrc-emacs/test.txt" nil "2" "/home/oub/testrc-emacs/test.txt.~2~")
vc-version-other-window("2")
* call-interactively(vc-version-other-window)
execute-extended-command(nil)
* call-interactively(execute-extended-command)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vc with rcs does not generate correct versions
2007-10-29 9:00 vc with rcs does not generate correct versions Uwe Brauer
@ 2007-10-29 13:58 ` Thien-Thi Nguyen
[not found] ` <mailman.2718.1193666376.18990.bug-gnu-emacs@gnu.org>
1 sibling, 0 replies; 4+ messages in thread
From: Thien-Thi Nguyen @ 2007-10-29 13:58 UTC (permalink / raw)
To: Uwe Brauer; +Cc: bug-gnu-emacs
() Uwe Brauer <oub@mat.ucm.es>
() Mon, 29 Oct 2007 10:00:56 +0100
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!!!
under RCS, a revision number is never a simple integer. there is always at
least one dot. in the above tests, you may see results more consistent w/
your expectation if you use "-p1.2" and "-p1.3". that is, the "1." is not
optional.
thi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vc with rcs does not generate correct versions
[not found] ` <mailman.2718.1193666376.18990.bug-gnu-emacs@gnu.org>
@ 2007-10-29 14:19 ` Uwe Brauer
2007-10-29 20:26 ` Thien-Thi Nguyen
0 siblings, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2007-10-29 14:19 UTC (permalink / raw)
To: bug-gnu-emacs
>>>>> "Thien-Thi" == Thien-Thi Nguyen <ttn@gnuvola.org> writes:
> under RCS, a revision number is never a simple integer. there is
> always at least one dot. in the above tests, you may see results
> more consistent w/ your expectation if you use "-p1.2" and
> "-p1.3". that is, the "1." is not optional.
You are very right, with the exception of p1 instead of p1.1. I swore
that remembered that one should drop the
1. I just checked with GNU emacs and Xemacs, vc-version-other-window
given the full version number like 1.3 works fine.
Thanks very much and sorry for the silly mistake.
Uwe
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vc with rcs does not generate correct versions
2007-10-29 14:19 ` Uwe Brauer
@ 2007-10-29 20:26 ` Thien-Thi Nguyen
0 siblings, 0 replies; 4+ messages in thread
From: Thien-Thi Nguyen @ 2007-10-29 20:26 UTC (permalink / raw)
To: Uwe Brauer; +Cc: bug-gnu-emacs
() Uwe Brauer <oub@mat.ucm.es>
() Mon, 29 Oct 2007 15:19:21 +0100
silly mistake.
no worries. better a silly mistake than a grave one.
thi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-29 20:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-29 9:00 vc with rcs does not generate correct versions Uwe Brauer
2007-10-29 13:58 ` Thien-Thi Nguyen
[not found] ` <mailman.2718.1193666376.18990.bug-gnu-emacs@gnu.org>
2007-10-29 14:19 ` Uwe Brauer
2007-10-29 20:26 ` Thien-Thi Nguyen
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).