equal
deleted
inserted
replaced
181 # The file list may contain removed files, so check for |
181 # The file list may contain removed files, so check for |
182 # membership before assuming it is in the context. |
182 # membership before assuming it is in the context. |
183 if any(f in ctx and ctx[f].islfs() for f, n in files): |
183 if any(f in ctx and ctx[f].islfs() for f, n in files): |
184 self.repo.requirements.add('lfs') |
184 self.repo.requirements.add('lfs') |
185 self.repo._writerequirements() |
185 self.repo._writerequirements() |
|
186 |
|
187 # Permanently enable lfs locally |
|
188 with self.repo.vfs('hgrc', 'a', text=True) as fp: |
|
189 fp.write('\n[extensions]\nlfs=\n') |
186 |
190 |
187 return node |
191 return node |
188 |
192 |
189 sink.__class__ = lfssink |
193 sink.__class__ = lfssink |
190 |
194 |