Mercurial > hg
comparison hgext/lfs/__init__.py @ 35213:24aa4853c031
lfs: enable the extension locally after cloning a repo with 'lfs' requirement
We do the same thing on clone for the largefiles extension, as a convenience.
Similar to largefiles, it's probably safer to only enable this extension on a
per repo basis because it is trivial to add an lfs file. And that gives the
repository some centralized VCS characteristics.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 16 Nov 2017 20:23:20 -0500 |
parents | f8f939a2926c |
children | a8c778b2a689 |
comparison
equal
deleted
inserted
replaced
35212:c7b45db8f317 | 35213:24aa4853c031 |
---|---|
35 changegroup, | 35 changegroup, |
36 context, | 36 context, |
37 exchange, | 37 exchange, |
38 extensions, | 38 extensions, |
39 filelog, | 39 filelog, |
40 hg, | |
40 localrepo, | 41 localrepo, |
41 registrar, | 42 registrar, |
42 revlog, | 43 revlog, |
43 scmutil, | 44 scmutil, |
44 vfs as vfsmod, | 45 vfs as vfsmod, |
149 wrapper.writetostore, | 150 wrapper.writetostore, |
150 wrapper.bypasscheckhash, | 151 wrapper.bypasscheckhash, |
151 ), | 152 ), |
152 ) | 153 ) |
153 | 154 |
155 wrapfunction(hg, 'clone', wrapper.hgclone) | |
156 | |
154 # Make bundle choose changegroup3 instead of changegroup2. This affects | 157 # Make bundle choose changegroup3 instead of changegroup2. This affects |
155 # "hg bundle" command. Note: it does not cover all bundle formats like | 158 # "hg bundle" command. Note: it does not cover all bundle formats like |
156 # "packed1". Using "packed1" with lfs will likely cause trouble. | 159 # "packed1". Using "packed1" with lfs will likely cause trouble. |
157 names = [k for k, v in exchange._bundlespeccgversions.items() if v == '02'] | 160 names = [k for k, v in exchange._bundlespeccgversions.items() if v == '02'] |
158 for k in names: | 161 for k in names: |