Edgewall Software

Changeset 12775


Ignore:
Timestamp:
May 11, 2014, 4:45:34 PM (11 years ago)
Author:
Jun Omae
Message:

1.1.2dev: merged [12774] from 1.0-stable (fix for #11505)

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tracopt/versioncontrol/git/PyGIT.py

    r12765 r12775  
    224224        return self.__inst
    225225
     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
    226233
    227234class Storage(object):
     
    229236
    230237    __SREV_MIN = 4 # minimum short-rev length
    231 
    232238
    233239    class RevCache(tuple):
  • trunk/tracopt/versioncontrol/git/tests/PyGIT.py

    r12751 r12775  
    2222from trac.util import create_file
    2323from trac.util.compat import close_fds
    24 from trac.versioncontrol.api import Changeset, DbRepositoryProvider
     24from trac.versioncontrol.api import Changeset, DbRepositoryProvider, \
     25                                    RepositoryManager
    2526from tracopt.versioncontrol.git.git_fs import GitConnector
    2627from tracopt.versioncontrol.git.PyGIT import GitCore, GitError, Storage, \
     
    166167
    167168    def tearDown(self):
     169        RepositoryManager(self.env).reload_repositories()
     170        StorageFactory._clean()
    168171        self.env.reset_db()
    169172        if os.path.isdir(self.repos_path):
  • trunk/tracopt/versioncontrol/git/tests/git_fs.py

    r12721 r12775  
    2929from trac.versioncontrol.web_ui.log import LogModule
    3030from trac.web.href import Href
     31from tracopt.versioncontrol.git.PyGIT import StorageFactory
    3132from tracopt.versioncontrol.git.git_fs import GitConnector
    3233
     
    5253
    5354    def tearDown(self):
     55        self._repomgr.reload_repositories()
     56        StorageFactory._clean()
    5457        self.env.reset_db()
    5558        if os.path.isdir(self.repos_path):
Note: See TracChangeset for help on using the changeset viewer.