Mercurial > hg
diff hgext/lfs/__init__.py @ 35440:e333d27514b0
lfs: add an experimental config to override User-Agent for the blob transfer
This will allow developers to test against various server implementations. I
didn't put it under [devel] because it's possible that some user needs to use it
in the field.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 12 Dec 2017 15:16:02 -0500 |
parents | b0ba1539af01 |
children | 488634db5928 |
line wrap: on
line diff
--- a/hgext/lfs/__init__.py Thu Dec 14 13:04:08 2017 -0500 +++ b/hgext/lfs/__init__.py Tue Dec 12 15:16:02 2017 -0500 @@ -64,6 +64,10 @@ configtable = {} configitem = registrar.configitem(configtable) +configitem('experimental', 'lfs.user-agent', + default=None, +) + configitem('lfs', 'url', default=configitem.dynamicdefault, )