diff mercurial/filelog.py @ 39551:261f1e8dc300

localrepo: add requirement when narrow files creation option present The previous commit taught hg.clone() to define a creation option when file include or exclude patterns are passed. This commit teaches the new repo creation code to convert that creation option into a repository requirement. While not yet used by the narrow extension, the eventual side-effect of this change is that newly-created repositories will have the narrow requirement from their creation onset. Currently, the requirement is added to the repo at exchange.pull() time via a wrapped function in the narrow extension. Differential Revision: https://phab.mercurial-scm.org/D4537
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 11 Sep 2018 14:16:05 -0700
parents 71575a1e197e
children 3e801ffd7269
line wrap: on
line diff