equal
deleted
inserted
replaced
210 # The file list may contain removed files, so check for |
210 # The file list may contain removed files, so check for |
211 # membership before assuming it is in the context. |
211 # membership before assuming it is in the context. |
212 if any(f in ctx and ctx[f].islfs() for f, n in files): |
212 if any(f in ctx and ctx[f].islfs() for f, n in files): |
213 self.repo.requirements.add('lfs') |
213 self.repo.requirements.add('lfs') |
214 self.repo._writerequirements() |
214 self.repo._writerequirements() |
215 |
|
216 # Permanently enable lfs locally |
|
217 self.repo.vfs.append( |
|
218 'hgrc', util.tonativeeol('\n[extensions]\nlfs=\n')) |
|
219 |
215 |
220 return node |
216 return node |
221 |
217 |
222 sink.__class__ = lfssink |
218 sink.__class__ = lfssink |
223 |
219 |