Esempio n. 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
Esempio n. 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
Esempio n. 3
0
 def reopen_hashcache(self):
     hc = HashCache('.', '.bzr/stat-cache')
     hc.read()
     return hc
Esempio n. 4
0
 def reopen_hashcache(self):
     hc = HashCache(".", ".bzr/stat-cache")
     hc.read()
     return hc
Esempio n. 5
0
 def reopen_hashcache(self):
     hc = HashCache('.', '.bzr/stat-cache')
     hc.read()
     return hc
Esempio n. 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