equal
deleted
inserted
replaced
12 from mercurial.i18n import _ |
12 from mercurial.i18n import _ |
13 from mercurial.node import bin, hex, nullid, short |
13 from mercurial.node import bin, hex, nullid, short |
14 |
14 |
15 from mercurial import ( |
15 from mercurial import ( |
16 error, |
16 error, |
|
17 repository, |
17 revlog, |
18 revlog, |
18 util, |
19 util, |
19 ) |
20 ) |
20 |
21 |
21 from mercurial.utils import ( |
22 from mercurial.utils import ( |
26 |
27 |
27 from . import ( |
28 from . import ( |
28 blobstore, |
29 blobstore, |
29 pointer, |
30 pointer, |
30 ) |
31 ) |
|
32 |
|
33 def localrepomakefilestorage(orig, requirements, features, **kwargs): |
|
34 if b'lfs' in requirements: |
|
35 features.add(repository.REPO_FEATURE_LFS) |
|
36 |
|
37 return orig(requirements=requirements, features=features, **kwargs) |
31 |
38 |
32 def allsupportedversions(orig, ui): |
39 def allsupportedversions(orig, ui): |
33 versions = orig(ui) |
40 versions = orig(ui) |
34 versions.add('03') |
41 versions.add('03') |
35 return versions |
42 return versions |