How to setup a manifest-server

1,580 views
Skip to first unread message

Chih-Wei

unread,
Nov 6, 2011, 3:20:00 AM11/6/11
to repo-d...@googlegroups.com
I'm trying to use 'repo sync -t ...' feature. It seems to
need a manifest-server defined in the manifest.xml, right?
I searched the web but can't find any info about how to
implement a manifest server.
Could anyone provide some hints or examples for it?
Especially what the repo client will request
and what the server should reply?
Thanks a lot!

Regards,

Shawn Pearce

unread,
Nov 7, 2011, 10:02:44 AM11/7/11
to repo-d...@googlegroups.com

The only documentation on this is in `repo help sync`. After that, you
will need to grep the repo source code for the relevant variable
strings and see how that code operates.

IIRC its a simple HTTP interface, data from environment variables is
passed in an HTTP GET query string and an XML manifest file is
returned.

Dmitry Fink

unread,
Jun 22, 2012, 5:05:30 PM6/22/12
to repo-d...@googlegroups.com
I've pushed a very minimalistic implementation of a manifest xmlrpc server using node.js to https://github.com/finik/manifest_server
For now it ignores all the parameters and just returns static test.xml file for any request, but it can easily be extended.
It's an old thread and probably the author doesn't care about it anymore, but it is the only thread that keeps appearing
when one googles for these keywords (I guess manifest server is not a very widely used feature), hopefully my implementation will be of help to someone.

David Pursehouse

unread,
Aug 21, 2012, 9:42:37 AM8/21/12
to repo-d...@googlegroups.com
> The only documentation on this is in `repo help sync`.
>

There's also some documentation of the RPC methods in docs/manifest-format.txt but it's incomplete.

I've uploaded a patch [1] to enhance it a bit.


> I searched the web but can't find any info about how to
> implement a manifest server.
> Could anyone provide some hints or examples for it?
>

If you happen to be running Django, the rpc4django package [2] would be worth looking at.

[1] https://gerrit-review.googlesource.com/#/c/37550/
[2] http://pypi.python.org/pypi/rpc4django/

--
David
Reply all
Reply to author
Forward
0 new messages