Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 39854:823a580448d7
largefiles: automatically load largefiles extension when required (BC)
This is very similar to what we just did for LFS but for largefiles.
See recent commit messages for the rationale here.
Differential Revision: https://phab.mercurial-scm.org/D4713
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 20 Sep 2018 15:30:00 -0700 |
parents | 2c2fadbc9851 |
children | e1e3d1b498d3 |
comparison
equal
deleted
inserted
replaced
39853:bcf72d7b1524 | 39854:823a580448d7 |
---|---|
586 """ | 586 """ |
587 | 587 |
588 # Map of requirements to list of extensions to load automatically when | 588 # Map of requirements to list of extensions to load automatically when |
589 # requirement is present. | 589 # requirement is present. |
590 autoextensions = { | 590 autoextensions = { |
591 b'largefiles': [b'largefiles'], | |
591 b'lfs': [b'lfs'], | 592 b'lfs': [b'lfs'], |
592 } | 593 } |
593 | 594 |
594 for requirement, names in sorted(autoextensions.items()): | 595 for requirement, names in sorted(autoextensions.items()): |
595 if requirement not in requirements: | 596 if requirement not in requirements: |