Beispiel #1
0
 def __init__(self):
     # set root and cache file name to none to make sure we won't touch the
     # real filesystem
     HashCache.__init__(self, '.', 'hashcache')
     self._files = {}
     # simulated clock running forward as operations happen
     self._clock = 0
Beispiel #2
0
 def __init__(self):
     # set root and cache file name to none to make sure we won't touch the
     # real filesystem
     HashCache.__init__(self, '.', 'hashcache')
     self._files = {}
     # simulated clock running forward as operations happen
     self._clock = 0
Beispiel #3
0
 def reopen_hashcache(self):
     hc = HashCache('.', '.bzr/stat-cache')
     hc.read()
     return hc
Beispiel #4
0
 def reopen_hashcache(self):
     hc = HashCache(".", ".bzr/stat-cache")
     hc.read()
     return hc
Beispiel #5
0
 def reopen_hashcache(self):
     hc = HashCache('.', '.bzr/stat-cache')
     hc.read()
     return hc
Beispiel #6
0
 def make_hashcache(self):
     # make a dummy bzr directory just to hold the cache
     os.mkdir('.bzr')
     hc = HashCache('.', '.bzr/stat-cache')
     return hc