# # # patch "tracvc/mtn/backend.py" # from [0fd0670a63ca331972f91c2d423dbf964901321f] # to [60bc26b833eea09b00c2397deebe75dbb7acf676] # ============================================================ --- tracvc/mtn/backend.py 0fd0670a63ca331972f91c2d423dbf964901321f +++ tracvc/mtn/backend.py 60bc26b833eea09b00c2397deebe75dbb7acf676 @@ -49,12 +49,19 @@ class MonotoneConnector(Component): self.repos = {} def get_supported_types(self): - """Support for repository type 'mtn'.""" + """Return the types of version control systems that are supported. + + Yields `(repotype, priority)` pairs, where `repotype` is used to + match against the configured `[trac] repository_type` value in TracIni. + + If multiple provider match a given type, the `priority` is used to + choose between them (highest number is highest priority). + """ yield ("mtn", 0) def get_repository(self, type, path, authname): - """Return a monotone repository.""" - + """Return a Repository instance for the given repository type and dir. + """ # note: we don't use type or authname, therefore we can always # return the same Repository object for the same database path if not path in self.repos: