[PATCH 6 of 6] Change User-agent field in client to have a lot more info

Eric Hopper hopper at omnifarious.org
Thu Mar 13 17:05:35 CDT 2008


I really like this patch.  I think it could be very useful for
repository maintainers when they're making decisions about things like
Windows support or moving to a version of Mercurial that doesn't work
with an older version of Python or other such things.

Basically it dumps version information for Mercurial and the Python
being used into the User Agent string in a format similar to how
browsers do it.

I've talked about this previously though and Matt said he didn't like
it.

2 files changed, 14 insertions(+), 2 deletions(-)
mercurial/httprepo.py |    4 ++--
mercurial/version.py  |   12 ++++++++++++


-------------- next part --------------
A non-text attachment was scrubbed...
Name: bmercurial-6.patch
Type: text/x-patch
Size: 1785 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20080313/d90d30d6/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20080313/d90d30d6/attachment.pgp 


More information about the Mercurial-devel mailing list