hgext/largefiles/overrides.py
changeset 39849 d3d4b4b5f725
parent 37778 f10cb49951e1
child 39854 823a580448d7
equal deleted inserted replaced
39848:4ece3cdfd907 39849:d3d4b4b5f725
   903             if missing != 0:
   903             if missing != 0:
   904                 return None
   904                 return None
   905 
   905 
   906     return result
   906     return result
   907 
   907 
   908 def hgpostshare(orig, sourcerepo, destrepo, bookmarks=True, defaultpath=None):
   908 def hgpostshare(orig, sourcerepo, destrepo, defaultpath=None):
   909     orig(sourcerepo, destrepo, bookmarks, defaultpath)
   909     orig(sourcerepo, destrepo, defaultpath=defaultpath)
   910 
   910 
   911     # If largefiles is required for this repo, permanently enable it locally
   911     # If largefiles is required for this repo, permanently enable it locally
   912     if 'largefiles' in destrepo.requirements:
   912     if 'largefiles' in destrepo.requirements:
   913         destrepo.vfs.append('hgrc',
   913         destrepo.vfs.append('hgrc',
   914                             util.tonativeeol('\n[extensions]\nlargefiles=\n'))
   914                             util.tonativeeol('\n[extensions]\nlargefiles=\n'))