On 2011-11-29 17:37, Thomas Mueller wrote:
Hi,

What is not on this wiki page yet - because it's not defined yet - is:
"commit metadata". Commit metadata is needed when you want to:

* get multiple commits (diffs) in one block
* send multiple commits (diffs) in one block

As an example, see MicroKernel.getJournal() at
http://svn.apache.org/repos/asf/jackrabbit/sandbox/microkernel/src/main/jav
a/org/apache/jackrabbit/mk/api/MicroKernel.java

This method is supposed to get multiple commits in one operation.

I propose the following syntax:

@ {"ts": 1322055029229, "msg": "New node 'hello'"}
+ "/hello": {}
@ {"ts": 1322055029230, "msg": "New node 'world'"}
+ "/world": {}

That means, the syntax for "commit metadata" is:

METADATA ::= "@" OBJECT
...

This highlights a general problem with the compact syntax; it lacks an extension point.

Unless I'm missing something, a today's JSOP parsers will be unable to parse future messages that contain an extension defined like the above, as they won't know how to skip over it.

Best regards, Julian

Reply via email to