##// END OF EJS Templates
localrepo: add requirement when narrow files creation option present...
Gregory Szorc -
r39587:261f1e8d default
parent child Browse files
Show More
@@ -2440,6 +2440,9 b' def newreporequirements(ui, createopts=N'
2440 2440 if ui.configbool('format', 'internal-phase'):
2441 2441 requirements.add('internal-phase')
2442 2442
2443 if createopts.get('narrowfiles'):
2444 requirements.add(repository.NARROW_REQUIREMENT)
2445
2443 2446 return requirements
2444 2447
2445 2448 def filterknowncreateopts(ui, createopts):
@@ -2456,7 +2459,9 b' def filterknowncreateopts(ui, createopts'
2456 2459 Extensions can wrap this function to filter out creation options
2457 2460 they know how to handle.
2458 2461 """
2459 return dict(createopts)
2462 known = {'narrowfiles'}
2463
2464 return {k: v for k, v in createopts.items() if k not in known}
2460 2465
2461 2466 def createrepository(ui, wdirvfs, createopts=None):
2462 2467 """Create a new repository in a vfs.
General Comments 0
You need to be logged in to leave comments. Login now