learning rcs (revision control system): All I get is >> after check in

Posted on 2006-10-26
Last Modified: 2010-04-16
I installed rcs (red hat linux)

I do $ ci filename

I get

filename,v  <--  filename
enter description, terminated with single '.' or end of file:
NOTE: This is NOT the log message!

I put in
>> I added line 73 blah blah.

then I just get the >> prompt over and over again.
if I do control c I get back to $.

I'm following a tutorial.
after I ended my comment with a period I'm supposed to be back in shell.

what's going on?

Question by:rark
  • 4
  • 2

Author Comment

ID: 17815511
make install
cd man && make install
make[1]: Entering directory `/downloads/rcs-5.7/man'
./../mkinstalldirs /usr/local/man/man1 /usr/local/man/man5
mkdir /usr/local/man/man5
mkdir: cannot create directory `/usr/local/man/man5': Permission denied
make[1]: [installdirs] Error 1 (ignored)
for m in ci co ident merge rcs rcsclean rcsdiff rcsintro rcsmerge rlog; do \
        /usr/bin/install -c -m 644 ./$m.1 /usr/local/man/man1/$m.1; \
/usr/bin/install: cannot create regular file `/usr/local/man/man1/ci.1': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/man/man1/co.1': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/man/man1/ident.1': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/man/man1/merge.1': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/man/man1/rcs.1': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/man/man1/rcsclean.1': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/man/man1/rcsdiff.1': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/man/man1/rcsintro.1': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/man/man1/rcsmerge.1': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/man/man1/rlog.1': Permission denied
make[1]: [install] Error 1 (ignored)
{ test -f rcsfile.5 || cd .; } && \
/usr/bin/install -c -m 644 rcsfile.5 /usr/local/man/man5/rcsfile.5
/usr/bin/install: cannot create regular file `/usr/local/man/man5/rcsfile.5': No such file or directory
make[1]: [install] Error 1 (ignored)
make[1]: Leaving directory `/downloads/rcs-5.7/man'
cd src && make install
make[1]: Entering directory `/downloads/rcs-5.7/src'
./../mkinstalldirs /usr/local/bin
for p in ci co ident merge rcs rcsclean rcsdiff rcsmerge rlog; do \
  /usr/bin/install -c $p /usr/local/bin/$p; \
make[1]: Leaving directory `/downloads/rcs-5.7/src'

Author Comment

ID: 17815521
What I posted above is the error message I got when I installed rcs.  at first I thought man is manual and that it's just manual pages and that it should still work.

but maybe this is where the problem is.
LVL 48

Assisted Solution

Tintin earned 150 total points
ID: 17815603
enter description, terminated with *single* '.' or end of file:

Note that I highlighted the word 'single' above.

So you need to enter a . on a line by itself or use Ctrl-D

However, if you want to avoid doing that, then use the following syntax.

ci -u -m 'Checking in the file for the first time' file
co -l file
vi file
ci -u -m 'I just made some edits to the file' file

That's pretty much it.
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 200 total points
ID: 17815708
No no NO

The "enter description" prompt is for a first-time check in. That's where you use -t<filename> or -t-"[optional description text]" to avoid the prompt.
The checkin comment for the revision (-m) is assumed to be "Initial revision" in this case and is not prompted for if not supplied - but you can supply one if you like (or change later with rcs -m1.1:) (That's a real colon, not a smiley)

If you want to a file locked after checking in, do 'ci -l -m"(whatever I did)" file'

You can also use </dev/null to avoid prompts, except IIRC it doesn't work for multiple first-time checkins.

To insert a multiple-line comment from the command line you can of course use backslash, but with bash I've found it better to use ^V^J (Control-V Enter) at the end of lines - that way it's one item in the command history and can be recalled and edited in its entirety.

BTW you can use Enter ot Control-M or Control-J - whatever suits

Author Comment

ID: 17815795
thank you both.
what I didn't know is the thing Tintin said, that the . has to be on a line by itself.

(I also reinstalled into a different directory to get rid of the /man errors)

I've succeeded in checking in and checking out a file.

one thing I'm wondering, on another thread, you told me I had to do diff -w because my developer is on windows and I'm on linux.  Am I going to have to do rcs differently also?

(I increased the points for asking for follow-up question.  It seemed to me less clutter than starting a new thread.)
LVL 34

Accepted Solution

Duncan Roe earned 200 total points
ID: 17818747
Hi rark,

rcsdiff takes all the usual diff options but they have to go after the rcs options (like -r). I often use -w with rcsdiff.

Author Comment

ID: 17822834
thanks everyone!  

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupSumClump challenge 9 117
Exchange 2016 Post Installation Question 5 76
Recommendation vb6 to or others 14 150
Please help| Getting the syntax error in below query. 2 57
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question