Changeset 12775
- Timestamp:
- May 11, 2014, 4:45:34 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/1.0-stable merged: 12774
- Property svn:mergeinfo changed
-
trunk/tracopt/versioncontrol/git/PyGIT.py
r12765 r12775 224 224 return self.__inst 225 225 226 @classmethod 227 def _clean(cls): 228 """For testing purpose only""" 229 with StorageFactory.__dict_lock: 230 cls.__dict.clear() 231 cls.__dict_nonweak.clear() 232 226 233 227 234 class Storage(object): … … 229 236 230 237 __SREV_MIN = 4 # minimum short-rev length 231 232 238 233 239 class RevCache(tuple): -
trunk/tracopt/versioncontrol/git/tests/PyGIT.py
r12751 r12775 22 22 from trac.util import create_file 23 23 from trac.util.compat import close_fds 24 from trac.versioncontrol.api import Changeset, DbRepositoryProvider 24 from trac.versioncontrol.api import Changeset, DbRepositoryProvider, \ 25 RepositoryManager 25 26 from tracopt.versioncontrol.git.git_fs import GitConnector 26 27 from tracopt.versioncontrol.git.PyGIT import GitCore, GitError, Storage, \ … … 166 167 167 168 def tearDown(self): 169 RepositoryManager(self.env).reload_repositories() 170 StorageFactory._clean() 168 171 self.env.reset_db() 169 172 if os.path.isdir(self.repos_path): -
trunk/tracopt/versioncontrol/git/tests/git_fs.py
r12721 r12775 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.