Show More
@@ -64,6 +64,10 b" testedwith = 'ships-with-hg-core'" | |||||
64 | configtable = {} |
|
64 | configtable = {} | |
65 | configitem = registrar.configitem(configtable) |
|
65 | configitem = registrar.configitem(configtable) | |
66 |
|
66 | |||
|
67 | configitem('experimental', 'lfs.user-agent', | |||
|
68 | default=None, | |||
|
69 | ) | |||
|
70 | ||||
67 | configitem('lfs', 'url', |
|
71 | configitem('lfs', 'url', | |
68 | default=configitem.dynamicdefault, |
|
72 | default=configitem.dynamicdefault, | |
69 | ) |
|
73 | ) |
@@ -125,6 +125,8 b' class _gitlfsremote(object):' | |||||
125 | self.ui = ui |
|
125 | self.ui = ui | |
126 | baseurl, authinfo = url.authinfo() |
|
126 | baseurl, authinfo = url.authinfo() | |
127 | self.baseurl = baseurl.rstrip('/') |
|
127 | self.baseurl = baseurl.rstrip('/') | |
|
128 | useragent = repo.ui.config('experimental', 'lfs.user-agent') | |||
|
129 | if not useragent: | |||
128 | useragent = 'mercurial/%s git/2.15.1' % util.version() |
|
130 | useragent = 'mercurial/%s git/2.15.1' % util.version() | |
129 | self.urlopener = urlmod.opener(ui, authinfo, useragent) |
|
131 | self.urlopener = urlmod.opener(ui, authinfo, useragent) | |
130 | self.retry = ui.configint('lfs', 'retry') |
|
132 | self.retry = ui.configint('lfs', 'retry') |
General Comments 0
You need to be logged in to leave comments.
Login now