short: IMVHO (V=very :-) there are two bugs
1) the caracter (") in the log message used in checkIn
2) the function version() used for undoLast and for revert
   give "RCS: 1.12" and not "1.12"

good work
and thank you for all
antonio

On 19 Aug 2001, Lars Gullik [iso-8859-1] Bjønnes wrote:
> Antonio Gulino <[EMAIL PROTECTED]> writes:
>
> | There are many possibilities to try.
> | But, I ask you Lars: give me the right steps, please :-)
> | Give me an example, where "Undo last Check in" do something
> | At the moment, only "Revert to last version" do somethings.
> | But it do the same as "File -> revert to saved"
>
> Nah it does not.
yes, it does (because there is a bug, IMVHO)

> Open file (that is under revision control) (#0)
> Modify it
> File->save it  (#1)
> Modify it some more
>
> options:
> File->Revert to Saved -> gives you version #1 of the file
It's OK

> File->Version Control->Revert to last version -> gives you verion #0 of the file
No, I get version #1

---------------------------------------------
> And not to the "Undo last Check in" example:
lets go

> Open file (that is under revision control) (#0)
done
> File->Version Control->Checkout for Edit
done
> Modify it
done
> File->Version Control->Commit Changes (#1)
Have I to answord Yes or No?
I click on Yes
done (now the document is read only)
> File->Version Control->Undo last Checkin
done (the document is always read only)
> File->Version Control->Revert to last version gives you (#0)
done. BUT I get #1 !


> | Something I can read the msg "Command not allowed ..."
> | but I'm not spedy enough to read it (yes, I look out of the windows into the
> | real world...)
> |
> | ciao ciao,
> | antonio
> |
> | On 18 Aug 2001, Lars Gullik [iso-8859-1] Bjønnes wrote:
> | > Antonio Gulino <[EMAIL PROTECTED]> writes:
> | > | But, only another question:
> | > | "rcs -o" + version()
> | > | ? is it the same like
> | > | rcs -o1.4
> | > | if the current version is 1.4 ?
> | > | Because, if it is so, I don't understand why he do nothing.
> | > | rcs -o1.4 mean that the version 1.4  are deleted.
> | > | But on LyX nothing is happen
>
> there was a bug...
>
> run lyx with "-dbg lyxvc" to see what really happens and to help fix
> remaining problems.
yes sir

the first time it was a problem, because I used the character " and the text
-dbg into the message for the log

...
LyXVC: checkIn
doVCCommand: ci -q -u -m"l'ho appena detto: sto lavorando con "lyx -dbg lyxvc""
"testRCS2.lyx"
ci: unknown date/time: bg
ci aborted
...

Now a better version
I think it is a problem with the function version()
As far i ca see, version() get "RCS: 1.12" and not "1.12"
If it is so, I understand why you can not understand my problem :-)
====================
antonio@scheggia:~ > lyx -dbg lyxvc
Setting debug level to lyxvc
Debugging `lyxvc' (Version control)
Checking if file is under rcs: /home/antonio/testRCS2.lyx,v
Yes /home/antonio/testRCS2.lyx is under rcs.
LyXVC::RCS: retrive.
        /home/antonio/testRCS2.lyx
doVCCommand: co -q -r "/home/antonio/testRCS2.lyx"
Checking if file is under rcs: /home/antonio/testRCS2.lyx,v
Yes /home/antonio/testRCS2.lyx is under rcs.
LyXVC::RCS: scanMaster.
LyXVC::scanMaster: current lex text: `head'
LyXVC: version found to be 1.11
LyXVC::scanMaster: current lex text: `access;'
LyXVC::scanMaster: current lex text: `symbols;'
LyXVC::scanMaster: current lex text: `locks;'
LyXVC::scanMaster: current lex text: `strict;'
LyXVC::scanMaster: current lex text: `comment'
LyX: X11 color linen allocated for background
LyX: X11 color black allocated for text
LyX: X11 color grey40 allocated for bottom area
LyX: X11 color black allocated for cursor
LyXVC: checkOut
doVCCommand: co -q -l "testRCS2.lyx"
TextCache::add 0x83c72c8 deleted
TextCache: BufferView::buffer
TextCache: buffer delete all
Checking if file is under rcs: /home/antonio/testRCS2.lyx,v
Yes /home/antonio/testRCS2.lyx is under rcs.
LyXVC::RCS: scanMaster.
LyXVC::scanMaster: current lex text: `head'
LyXVC: version found to be 1.11
LyXVC::scanMaster: current lex text: `access;'
LyXVC::scanMaster: current lex text: `symbols;'
LyXVC::scanMaster: current lex text: `locks'
LyXVC::scanMaster: current lex text: `strict;'
LyXVC::scanMaster: current lex text: `comment'
LyXVC: checkIn
doVCCommand: ci -q -u -m"1.checkout, 2.modify, 3. check in" "testRCS2.lyx"
TextCache::add 0x83c5560 deleted
TextCache: BufferView::buffer
TextCache: buffer delete all
Checking if file is under rcs: /home/antonio/testRCS2.lyx,v
Yes /home/antonio/testRCS2.lyx is under rcs.
LyXVC::RCS: scanMaster.
LyXVC::scanMaster: current lex text: `head'
LyXVC: version found to be 1.12
LyXVC::scanMaster: current lex text: `access;'
LyXVC::scanMaster: current lex text: `symbols;'
LyXVC::scanMaster: current lex text: `locks;'
LyXVC::scanMaster: current lex text: `strict;'
LyXVC::scanMaster: current lex text: `comment'
LyXVC: undoLast
doVCCommand: rcs -oRCS: 1.12 "testRCS2.lyx"
rcs: RCS/1.12,v: No such file or directory
RCS file: testRCS2.lyx,v
rcs: testRCS2.lyx,v: Symbolic name `RCS' is undefined.
LyXVC: revert
doVCCommand: co -f -uRCS: 1.12 "testRCS2.lyx"
co: RCS/1.12,v: No such file or directory
testRCS2.lyx,v  -->  testRCS2.lyx
co: testRCS2.lyx,v: Symbolic name `RCS' is undefined.
TextCache::add 0x83c4468 deleted
TextCache: BufferView::buffer
TextCache: buffer delete all
Checking if file is under rcs: /home/antonio/testRCS2.lyx,v
Yes /home/antonio/testRCS2.lyx is under rcs.
LyXVC::RCS: scanMaster.
LyXVC::scanMaster: current lex text: `head'
LyXVC: version found to be 1.12
LyXVC::scanMaster: current lex text: `access;'
LyXVC::scanMaster: current lex text: `symbols;'
LyXVC::scanMaster: current lex text: `locks;'
LyXVC::scanMaster: current lex text: `strict;'
LyXVC::scanMaster: current lex text: `comment'
doVCCommand: rlog "testRCS2.lyx" > /tmp/lyx_tmpdir1568RihL34/lyxvclog1568SwHHNc
doVCCommand: rlog "testRCS2.lyx" > /tmp/lyx_tmpdir1568RihL34/lyxvclog1568TQo29l
TextCache::add 0x83c5848 deleted
TextCache: BufferView::buffer
TextCache: buffer delete all
Running QuitLyX.
Deleting tmp dir /tmp/lyx_tmpdir1568RihL34
Button: 0x838f748
Label: 0x838f8f0
Form: 0x838fa98
Browser: 0x838fcc0

Reply via email to