Changeset 12774
- Timestamp:
- May 11, 2014, 4:41:11 PM (11 years ago)
- Location:
- branches/1.0-stable/tracopt/versioncontrol/git
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0-stable/tracopt/versioncontrol/git/PyGIT.py
r12720 r12774 226 226 return self.__inst 227 227 228 @classmethod 229 def _clean(cls): 230 """For testing purpose only""" 231 with StorageFactory.__dict_lock: 232 cls.__dict.clear() 233 cls.__dict_nonweak.clear() 234 228 235 229 236 class Storage(object): … … 231 238 232 239 __SREV_MIN = 4 # minimum short-rev length 233 234 240 235 241 class RevCache(tuple): -
branches/1.0-stable/tracopt/versioncontrol/git/tests/PyGIT.py
r12747 r12774 24 24 from trac.util import create_file 25 25 from trac.util.compat import close_fds 26 from trac.versioncontrol.api import Changeset, DbRepositoryProvider 26 from trac.versioncontrol.api import Changeset, DbRepositoryProvider, \ 27 RepositoryManager 27 28 from tracopt.versioncontrol.git.git_fs import GitConnector 28 29 from tracopt.versioncontrol.git.PyGIT import GitCore, GitError, Storage, \ … … 168 169 169 170 def tearDown(self): 171 RepositoryManager(self.env).reload_repositories() 172 StorageFactory._clean() 170 173 self.env.reset_db() 171 174 if os.path.isdir(self.repos_path): -
branches/1.0-stable/tracopt/versioncontrol/git/tests/git_fs.py
r12720 r12774 29 29 from trac.versioncontrol.web_ui.log import LogModule 30 30 from trac.web.href import Href 31 from tracopt.versioncontrol.git.PyGIT import StorageFactory 31 32 from tracopt.versioncontrol.git.git_fs import GitConnector 32 33 … … 52 53 53 54 def tearDown(self): 55 self._repomgr.reload_repositories() 56 StorageFactory._clean() 54 57 self.env.reset_db() 55 58 if os.path.isdir(self.repos_path):
Note:
See TracChangeset
for help on using the changeset viewer.