info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MT response and update -p command


From: Larry Jones
Subject: Re: MT response and update -p command
Date: Tue, 23 Jan 2001 11:46:42 -0500 (EST)

Milos Kleint writes:
> 
> It actually works fine all the time, except one case. when doing update -p
> <file> or checkout -p <file>
> If the file doesn't end with a new-line, then the final line of the source
> is discarded. While debugging this behaviour and by comparing our
> client-server communication and the cvs.exe one, I realized  the the final
> line is sent (as opposed to the rest of the file) with the MT response.
> And because we don't support it, the server decided to send nothing to us.

This is historical.  Before CVS had the MT response, that is exactly
what happened to a final partial output line -- it was discarded.

> I'm aware of the fact that it "hack" is used to set the right new-lining to
> the file being sent however IMHO it should at least send the wrong M
> response.

I'm inclined to agree -- anyone want to argue against such a change?

> Is this really a bug or do we have to support the MT response? Where to fill
> this bug? Is there any list of required responses and requests? I couldn't
> find anything like that in the Cvs client/server document.. Is there a more
> in-depth description of the MT response somewhere?

The MT response is the only way the protocol has to support a partial
line; if you want your clients to support partial lines, then you'll
have to support MT.  It's described in detail in 5.11 and 5.12 of the
CVS Client/Server document; required commands and responses are
discussed in 5.14.  Bug reports (as per HACKING) go to address@hidden

-Larry Jones

Yep, we'd probably be dead by now if it wasn't for Twinkies. -- Calvin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]