I had gone through the protocol and notes on the same as mentioned by
you.
Suppose I am doing the check out for the first time on my machine ( of
the sources in the SVN server ) then I am trying to send the following
format.
Say there is file named abcd.txt and its content is hi
Please correct me if I am wrong.
All the below has been taken from the text of svndiff in the notes
folder.
"SVN\0"
00000000 Source view offset 0
00000000 Source view length 0 (
since there is no source view for it )
00000010 Target view length 2 (
since the content only hi )
00000111 Instruction length 7 (
this I am not sure what to send. Where can I have all the set of
instructions? )
00000001 New data length 1 (
Adding h of hi )
01101000 The new data: 'h'
// 00000100 00000000 Source, len 4, offset 0
( not using this as there is no source to fetch data from )
// 00000100 00001000 Source, len 4, offset 8
( same as above )
10000001 New, len 1
01000001 00000000 Target, len 1, offset 1
01101001 The new data: 'i' (
Adding i of hi )
I am making a mistake some where or my understanding is wrong. Please
correct me and also provide exact sequence of bytes .
Thanks and Regards
Ramprasad
-----Original Message-----
**********************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error.
**********************************************************************
From: Max Bowsher [mailto:maxb@ukf.net]
Sent: Friday, June 24, 2005 3:26 PM
To: Ramprasad Venkata Inala
Cc: dev@subversion.tigris.org
Subject: Re: SVN Protocol
Ramprasad Venkata Inala wrote:
> I am not using any svn client to do a svndiff, I get the content or
> files from my versioning system and then send the content to the
client.
And you need to encode that content in the correct way for the
subversion
protocol.
Which you are not doing.
Thus, the svn client doesn't understand.
http://svn.collab.net/repos/svn/trunk/subversion/libsvn_ra_svn/protocol
http://svn.collab.net/repos/svn/trunk/notes/svndiff
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jun 28 07:25:09 2005