mercurial/hg.py
changeset 40324 6637b079ae45
parent 39849 d3d4b4b5f725
child 40331 ac59de55c8b4
equal deleted inserted replaced
40323:2c0aa02ecd5a 40324:6637b079ae45
   575         # Include everything by default if only exclusion patterns defined.
   575         # Include everything by default if only exclusion patterns defined.
   576         if storeexcludepats and not storeincludepats:
   576         if storeexcludepats and not storeincludepats:
   577             storeincludepats = {'path:.'}
   577             storeincludepats = {'path:.'}
   578 
   578 
   579         createopts['narrowfiles'] = True
   579         createopts['narrowfiles'] = True
       
   580 
       
   581     if srcpeer.capable(b'lfs-serve'):
       
   582         # Repository creation honors the config if it disabled the extension, so
       
   583         # we can't just announce that lfs will be enabled.  This check avoids
       
   584         # saying that lfs will be enabled, and then saying it's an unknown
       
   585         # feature.  The lfs creation option is set in either case so that a
       
   586         # requirement is added.  If the extension is explicitly disabled but the
       
   587         # requirement is set, the clone aborts early, before transferring any
       
   588         # data.
       
   589         createopts['lfs'] = True
       
   590 
       
   591         if extensions.disabledext('lfs'):
       
   592             ui.status(_('(remote is using large file support (lfs), but it is '
       
   593                         'explicitly disabled in the local configuration)\n'))
       
   594         else:
       
   595             ui.status(_('(remote is using large file support (lfs); lfs will '
       
   596                         'be enabled for this repository)\n'))
   580 
   597 
   581     shareopts = shareopts or {}
   598     shareopts = shareopts or {}
   582     sharepool = shareopts.get('pool')
   599     sharepool = shareopts.get('pool')
   583     sharenamemode = shareopts.get('mode')
   600     sharenamemode = shareopts.get('mode')
   584     if sharepool and islocal(dest):
   601     if sharepool and islocal(dest):