hgext/lfs/wrapper.py
changeset 40368 fad6068249d9
parent 40324 6637b079ae45
child 40386 4a81d82474e9
equal deleted inserted replaced
40367:824b687ff6af 40368:fad6068249d9
   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