RCS help (possible bug)
hi everyone,
i'm trying to learn rcs to assist my uni project, however I'm unsure about
the procedure to roll back versions (infact i think i may have found a
bug).
Say I have node_relations.c at version 1.4, but its stuffed. So i want to
go back to version 1.2.1.1 (turned into .1.1 because i just checked it
back in after editting 1.2 without specifying a version) and check it in
at 1.5 (is that the usual way of doing things?). See the middle of the log
to see the 'bug'.
i just add comments for you to see what i was doing...
so i did a checkout to see the error:
$ co node_relations.c
RCS/node_relations.c,v --> node_relations.c
revision 1.4
done
checkout out the good version:
$ co -l1.2.1.1 node_relations.c
RCS/node_relations.c,v --> node_relations.c
revision 1.2.1.1 (locked)
done
tried to check it back in without locking the latest version (oops):
$ ci -r1.5 node_relations.c
RCS/node_relations.c,v <-- node_relations.c
ci: RCS/node_relations.c,v: no lock set by wilfy for revision 1.4
locked it without checking it out:
$ rcs -l node_relations.c
RCS file: RCS/node_relations.c,v
1.4 locked
done
checked it in (good, that worked):
$ ci -r1.5 node_relations.c
RCS/node_relations.c,v <-- node_relations.c
new revision: 1.5; previous revision: 1.4
enter log message, terminated with single '.' or end of file:
>> .
done
checked it out again to take a look:
$ co node_relations.c
RCS/node_relations.c,v --> node_relations.c
revision 1.5
done
===================== BUG ===================
wanted to check it out and lock it, but WHY did it get the 1.2.1.1
revision??
$ co -l node_relations.c
RCS/node_relations.c,v --> node_relations.c
revision 1.2.1.1 (locked)
done
=================== BUG proof ====================
check it in, unlock it:
$ ci node_relations.c
RCS/node_relations.c,v <-- node_relations.c
file is unchanged; reverting to previous revision 1.2.1.1
done
check it out (locked) hmmmm why is THIS now 1.5?? inconsistant operations!
$ co -l node_relations.c
RCS/node_relations.c,v --> node_relations.c
revision 1.5 (locked)
done
checked it in so i could do that test again...
$ ci node_relations.c
RCS/node_relations.c,v <-- node_relations.c
file is unchanged; reverting to previous revision 1.5
done
this happened before
$ co node_relations.c
RCS/node_relations.c,v --> node_relations.c
revision 1.5
done
hmm NOW it gets me the 1.5... why did it get out that 1.2.1.1 before??
BUG?
$ co -l node_relations.c
RCS/node_relations.c,v --> node_relations.c
revision 1.5 (locked)
done
anyway i hope someone can help me, it would be disasterous to misuse rcs
and stuff up my project :/
thanks,
Paul
Reply to: