[PATCH 2 of 4] Add extras/addextras transfer support to HTTP repositories
Matt Nordhoff
mnordhoff at mattnordhoff.com
Fri Aug 29 17:52:09 UTC 2008
David Soria Parra wrote:
> diff --git a/mercurial/hgweb/protocol.py b/mercurial/hgweb/protocol.py
> --- a/mercurial/hgweb/protocol.py
> +++ b/mercurial/hgweb/protocol.py
> @@ -29,6 +30,15 @@
> r = str(inst)
> success = 0
> resp = "%s %s\n" % (success, r)
> +
> +def addextras(repo, req):
> + repo.addextras(req.form['extras'][0])
> + resp = "1"
> + req.respond(HTTP_OK, HGTYPE, length=len(resp))
> + yield resp
> +
> +def extras(repo, req):
> + resp = cPickle.dumps(repo.extras()) + "\n"
> req.respond(HTTP_OK, HGTYPE, length=len(resp))
> yield resp
>
This might be a stupid question, but is that an ugly diff, or did the
last two lines of the function at the top get removed?
--
More information about the Mercurial-devel
mailing list