On Thu, Jul 6, 2017 at 2:54 PM, Gregory Szorc <gregory.sz...@gmail.com> wrote: > # HG changeset patch > # User Gregory Szorc <gregory.sz...@gmail.com> > # Date 1499377696 25200 > # Thu Jul 06 14:48:16 2017 -0700 > # Node ID 7bd81df5813100a0a28ac2373722cd6405b5c505 > # Parent 868fe26df6ac39fddf1decc3ceae5dc0db9248be > sparse: move some temporary includes functions into core > > diff --git a/mercurial/sparse.py b/mercurial/sparse.py > --- a/mercurial/sparse.py > +++ b/mercurial/sparse.py > @@ -149,3 +149,20 @@ def writeconfig(repo, includes, excludes > fh.write('\n') > > invalidatesignaturecache(repo) > + > +def readtemporaryincludes(repo): > + raw = repo.vfs.tryread('tempsparse') > + if not raw: > + return set() > + > + return set(raw.split('\n')) > + > +def writetemporaryincludes(repo, includes):
Looks like this one could have preserved its leading _. _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel