comparison hgext/lfs/__init__.py @ 35189:f8f939a2926c

lfs: add a repo requirement for this extension when converting to lfs This covers both the vanilla repo -> lfs repo and largefiles -> lfs conversions. The largefiles extension adds the requirement directly, because it has a dedicated command to convert. Using the convert extension is better, because it supports more features. I'd like ideas about how to ensure that converting away from lfs works on all files. (See comments in test-lfs.t)
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 22 Nov 2017 22:38:50 -0500
parents e0a1b9ee93cd
children 24aa4853c031
comparison
equal deleted inserted replaced
35188:9700cb9df140 35189:f8f939a2926c
126 126
127 def extsetup(ui): 127 def extsetup(ui):
128 wrapfilelog(filelog.filelog) 128 wrapfilelog(filelog.filelog)
129 129
130 wrapfunction = extensions.wrapfunction 130 wrapfunction = extensions.wrapfunction
131
132 wrapfunction(scmutil, 'wrapconvertsink', wrapper.convertsink)
133
131 wrapfunction(changegroup, 134 wrapfunction(changegroup,
132 'supportedoutgoingversions', 135 'supportedoutgoingversions',
133 wrapper.supportedoutgoingversions) 136 wrapper.supportedoutgoingversions)
134 wrapfunction(changegroup, 137 wrapfunction(changegroup,
135 'allsupportedversions', 138 'allsupportedversions',