<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I don't really know if this is a problem or not, but I think that users<br></div><div><div class="gmail_extra">could have all kinds of settings in there configuration files, and </div>
<div class="gmail_extra">the changesets could be received different from user to user in case</div><div class="gmail_extra">of using the 'hg log' command without any template. </div><div class="gmail_extra"><br></div>
<div class="gmail_extra">Meanwhile I've made some examples, using a template. From </div><div class="gmail_extra">those examples the single notable thing is that the command server</div><div class="gmail_extra">is sending a changeset in a call. (channel, data_length, changeset</div>
<div class="gmail_extra">fit the template). Probably, the concern thing is that somehow in </div><div class="gmail_extra">the message data, there will be just a part of the changeset. </div><div class="gmail_extra"><br></div>
<div class="gmail_extra">I agree, that :</div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 This is the same situation as when working with TCP sockets:<br>
a client cannot "see" the chunks the server used when writing the reply<br>
to the socket. All the client sees is a stream of data.</blockquote><div><br></div><div><div><br class="">But in our case the, our message has a header, that tells use the</div><div>length of data. Probably is not what you want to point. </div>
<div><br></div><div><br></div><div>Also: about putting chunks together and then parse, I think that is a</div><div>very costly process. If the data comes in fields I think that is better</div><div>to "parse"/"put directly in a place".</div>
</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
We decided that a high-level client would get a ArraysList back with all<br>
the parsed changesets and made the internal iterator API private. One<br>
could also have exposed the iterator API instead.<br></blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div>It would be nice to have the changesets in an ArraysList, but the C language</div>
<div>is not providing a List implementation, yes I could simulate the list, but </div><div>there will be a problem with the length of data. If I passing the ArrayList</div><div>back to the user, this will mean that I must save in my memory the entire</div>
<div>amount of data(probably 500GB of data), or there is any other possibility of</div><div>doing this operation without saving the data in memory?</div><div><br></div>-- <div dir="ltr"><div>Iulian</div></div>
</div></div>