Size: 298
Comment:
|
Size: 1034
Comment: Added a few details that I know about.
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
http://server.net/hgweb.cgi?cmd=foo¶m1=bar | GET /hgweb.cgi?cmd=foo¶m1=bar HTTP/1.1 |
Line 7: | Line 7: |
Results are returned with the Content-Type application/mercurial-0.1. |
|
Line 8: | Line 10: |
*lookup *heads *branches *changegroup *changegroupsubset *between *capabilities *unbundle *stream_out |
=== lookup === === heads === === branches === === changegroup === === changegroupsubset === === between === === capabilities === Accepts no parameters. Returns a whitespace-separated list of other commands accepted by this server. For the ''unbundle'' command, produces the form unbundle=HG10GZ,HG10BZ,HG10UN if all three compression schemes are supported. === unbundle === Usage: {{{ POST /hgweb.cgi?cmd=unbundle&heads=HEADS HTTP/1.1 content-type: application/octet-stream }}} This command allows for the upload of new changes to the repository. The body of the POST request must be a changegroup in BundleFormat. The returned output is the same as what the ''hg unbundle'' command would print to standard output if it was being run locally. === stream_out === |
HTTP commands are sent as CGI requests having the following form:
GET /hgweb.cgi?cmd=foo¶m1=bar HTTP/1.1
Results are returned with the Content-Type application/mercurial-0.1.
Available commands
lookup
heads
branches
changegroup
changegroupsubset
between
capabilities
Accepts no parameters. Returns a whitespace-separated list of other commands accepted by this server. For the unbundle command, produces the form unbundle=HG10GZ,HG10BZ,HG10UN if all three compression schemes are supported.
unbundle
Usage:
POST /hgweb.cgi?cmd=unbundle&heads=HEADS HTTP/1.1 content-type: application/octet-stream
This command allows for the upload of new changes to the repository. The body of the POST request must be a changegroup in BundleFormat. The returned output is the same as what the hg unbundle command would print to standard output if it was being run locally.