Index: trac/env.py
===================================================================
--- trac/env.py	(revision 7773)
+++ trac/env.py	(working copy)
@@ -278,6 +278,14 @@
         """
         return RepositoryManager(self).get_repository(reponame, authname)
 
+    def get_repository_by_path(self, path, authname=None):
+        """Return the version control repository configured for this
+        environment.
+        
+        @param authname: user name for authorization
+        """
+        return RepositoryManager(self).get_repository_by_path(path, authname)
+
     def get_all_repositories(self, authname=None):
         """Iterate through all known repositories
         

