mercurial/httprepo.py
changeset 6293 9c195637ac0b
parent 6285 4b81eecc8aa2
child 6294 9cd6292abfdf
--- a/mercurial/httprepo.py	Sat Mar 15 12:42:41 2008 -0700
+++ b/mercurial/httprepo.py	Mon Mar 17 14:51:36 2008 -0700
@@ -10,7 +10,7 @@
 from remoterepo import remoterepository
 from i18n import _
 import repo, os, urllib, urllib2, urlparse, zlib, util, httplib
-import errno, keepalive, socket, changegroup, version
+import errno, keepalive, socket, changegroup
 
 class passwordmgr(urllib2.HTTPPasswordMgrWithDefaultRealm):
     def __init__(self, ui):
@@ -268,7 +268,7 @@
         opener = urllib2.build_opener(*handlers)
 
         # 1.0 here is the _protocol_ version
-        opener.addheaders = [('User-agent', version.get_useragent())]
+        opener.addheaders = [('User-agent', 'mercurial/proto-1.0')]
         urllib2.install_opener(opener)
 
     def url(self):