[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Server Responses
From: |
Brice Oliver |
Subject: |
Server Responses |
Date: |
Wed, 5 Nov 2003 14:46:54 -0500 |
How do I know when a response from the CVS server will have more than one
line. I have read the documentation on the client/server protocol, but it
still leaves me with questions.
For example: Not every line that comes back to the client has one of the
responses that is found in the valid-response list:
Clear-sticky OLIVER/
C:\REPOS/OLIVER/
These two lines appear together, but does the second line always appear when
the first line is sent back as a response? If so, how many responses from
the CVS server will have this type of setup?
I would like to parse the responses from the server. Any good suggestions?
Below is an example of what I want to parse. This response was created by a
checkout:
Clear-sticky OLIVER/
C:\REPOS/OLIVER/
Set-static-directory OLIVER/
C:\REPOS/OLIVER/
Mod-time 10 Oct 2003 21:20:46 -0000
MT +updated
MT text U
MT fname OLIVER/TRTACODE.SYFLD
MT newline
MT -updated
Created OLIVER/
C:\REPOS/OLIVER/TRTACODE.SYFLD
/TRTACODE.SYFLD/1.3///
u=r,g=r,o=r
435
CVS:BEGIN:TRTACODE.SYFLD
<?xml version='1.0'?>
<SYFLD Key='TRTACODE'>
<ROOT>Status
Code^CHR^Y^^^Y^/S^4^N^N^Y^^^^^2^^N^N^N^^^^^^^N^^^^^^^^^^^^^N</ROOT>
<SQLTAB/>
<SQLDES/>
<LIST_QUAL>
<QUAL Key='1'>TRTATYPE^[^TRTACOTATYPE</QUAL>
</LIST_QUAL>
<FEVENT Key='POSTWRITE'></FEVENT>
</SYFLD>
CVS:END:TRTACODE.SYFLD
ok
I would need to strip the XML out from the response, but also be able to
detect if there was an error and what error occurred. Any advise would be
great. Thanks!
Brice Oliver
Systems Analyst, Infrastructure
Product Development
Ontario Systems
Tel 765.751.7100
Fax 765.751.7199
mailto:address@hidden