Mercurial > hg
view hgext/remotefilelog/shallowstore.py @ 41966:42e2c7c52e1b
split: use the new movedirstate() we now have in scmutil
This avoids unnecessarily touching the working copy when splitting the
parent of the working copy. That also makes the test-removeemptydirs.t
case invalid, so we can just delete it.
Differential Revision: https://phab.mercurial-scm.org/D6127
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 13 Mar 2019 11:30:04 -0700 |
parents | 3a333a582d7b |
children | 2372284d9457 |
line wrap: on
line source
# shallowstore.py - shallow store for interacting with shallow repos # # Copyright 2013 Facebook, Inc. # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from __future__ import absolute_import def wrapstore(store): class shallowstore(store.__class__): def __contains__(self, path): # Assume it exists return True store.__class__ = shallowstore return store