Edgewall Software

Ticket #7920: trac-multirepos-r7684.patch

File trac-multirepos-r7684.patch, 684 bytes (added by alien.technology@…, 3 years ago)

Patch on the sandbox/multirepos branch, revision r7684, adds the Environment.get_repository_by_path method

  • trac/env.py

     
    278278        """ 
    279279        return RepositoryManager(self).get_repository(reponame, authname) 
    280280 
     281    def get_repository_by_path(self, path, authname=None): 
     282        """Return the version control repository configured for this 
     283        environment. 
     284         
     285        @param authname: user name for authorization 
     286        """ 
     287        return RepositoryManager(self).get_repository_by_path(path, authname) 
     288 
    281289    def get_all_repositories(self, authname=None): 
    282290        """Iterate through all known repositories 
    283291