mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
16e5bfa49b
remotefilelogserver.py already overrides _walkstreamfiles and makes sure to include locally committed content, so the override in shallowstore doesn't seem necessary. It also breaks treemanifests, since it doesn't include the meta/ directory.
17 lines
451 B
Python
17 lines
451 B
Python
# 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.
|
|
|
|
def wrapstore(store):
|
|
class shallowstore(store.__class__):
|
|
def __contains__(self, path):
|
|
# Assume it exists
|
|
return True
|
|
|
|
store.__class__ = shallowstore
|
|
|
|
return store
|