diff hgext/lfs/__init__.py @ 35178: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
line wrap: on
line diff
--- a/hgext/lfs/__init__.py	Sun Nov 26 14:59:39 2017 -0500
+++ b/hgext/lfs/__init__.py	Wed Nov 22 22:38:50 2017 -0500
@@ -128,6 +128,9 @@
     wrapfilelog(filelog.filelog)
 
     wrapfunction = extensions.wrapfunction
+
+    wrapfunction(scmutil, 'wrapconvertsink', wrapper.convertsink)
+
     wrapfunction(changegroup,
                  'supportedoutgoingversions',
                  wrapper.supportedoutgoingversions)