Show More
@@ -54,6 +54,31 b' from . import (' | |||||
54 | # leave the attribute unspecified. |
|
54 | # leave the attribute unspecified. | |
55 | testedwith = 'ships-with-hg-core' |
|
55 | testedwith = 'ships-with-hg-core' | |
56 |
|
56 | |||
|
57 | configtable = {} | |||
|
58 | configitem = registrar.configitem(configtable) | |||
|
59 | ||||
|
60 | configitem('lfs', 'url', | |||
|
61 | default=configitem.dynamicdefault, | |||
|
62 | ) | |||
|
63 | configitem('lfs', 'threshold', | |||
|
64 | default=None, | |||
|
65 | ) | |||
|
66 | configitem('lfs', 'retry', | |||
|
67 | default=5, | |||
|
68 | ) | |||
|
69 | # Deprecated | |||
|
70 | configitem('lfs', 'remotestore', | |||
|
71 | default=None, | |||
|
72 | ) | |||
|
73 | # Deprecated | |||
|
74 | configitem('lfs', 'dummy', | |||
|
75 | default=None, | |||
|
76 | ) | |||
|
77 | # Deprecated | |||
|
78 | configitem('lfs', 'git-lfs', | |||
|
79 | default=None, | |||
|
80 | ) | |||
|
81 | ||||
57 | cmdtable = {} |
|
82 | cmdtable = {} | |
58 | command = registrar.command(cmdtable) |
|
83 | command = registrar.command(cmdtable) | |
59 |
|
84 | |||
@@ -64,7 +89,7 b' def reposetup(ui, repo):' | |||||
64 | if not repo.local(): |
|
89 | if not repo.local(): | |
65 | return |
|
90 | return | |
66 |
|
91 | |||
67 |
threshold = repo.ui.configbytes('lfs', 'threshold' |
|
92 | threshold = repo.ui.configbytes('lfs', 'threshold') | |
68 |
|
93 | |||
69 | repo.svfs.options['lfsthreshold'] = threshold |
|
94 | repo.svfs.options['lfsthreshold'] = threshold | |
70 | repo.svfs.lfslocalblobstore = blobstore.local(repo) |
|
95 | repo.svfs.lfslocalblobstore = blobstore.local(repo) |
@@ -91,7 +91,7 b' class _gitlfsremote(object):' | |||||
91 | baseurl, authinfo = url.authinfo() |
|
91 | baseurl, authinfo = url.authinfo() | |
92 | self.baseurl = baseurl.rstrip('/') |
|
92 | self.baseurl = baseurl.rstrip('/') | |
93 | self.urlopener = urlmod.opener(ui, authinfo) |
|
93 | self.urlopener = urlmod.opener(ui, authinfo) | |
94 |
self.retry = ui.configint('lfs', 'retry' |
|
94 | self.retry = ui.configint('lfs', 'retry') | |
95 |
|
95 | |||
96 | def writebatch(self, pointers, fromstore): |
|
96 | def writebatch(self, pointers, fromstore): | |
97 | """Batch upload from local to remote blobstore.""" |
|
97 | """Batch upload from local to remote blobstore.""" |
General Comments 0
You need to be logged in to leave comments.
Login now