Mercurial > hg
diff mercurial/version.py @ 6293:9c195637ac0b
Backed out changeset 4b81eecc8aa2
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon, 17 Mar 2008 14:51:36 -0700 |
parents | 4b81eecc8aa2 |
children | 9cd6292abfdf |
line wrap: on
line diff
--- a/mercurial/version.py Sat Mar 15 12:42:41 2008 -0700 +++ b/mercurial/version.py Mon Mar 17 14:51:36 2008 -0700 @@ -10,8 +10,6 @@ """ import os -import os.path -import sys import re import time @@ -29,16 +27,6 @@ version = unknown_version return version -def get_useragent(): - """Return some extended version information for the User-Agent - field in http requests.""" - hgver = get_version() - pyver = '%s(%s)' % (sys.version.split()[0], hex(sys.hexversion)) - ostype = os.name - plat = sys.platform - return 'mercurial/proto-1.0 (Python/%s; Mercurial/%s; %s/%s)' % \ - (pyver, hgver, ostype, plat) - def write_version(version): """Overwrite version file.""" if version == get_version():