# HG changeset patch
# User ryan.j.ollos
# Date 1400115750 25200
# Branch 1.0
# Node ID 251cde2ad7fdddbfbde7542bccd2a2f4a129b9c9
# Parent 21bb3cc19977ee1f5e546fc21f440ebfd6231404
Implemented abstract method `get_path_history`, which currently displays just a `TracError`. Refs #11610, #9775.
diff -r 21bb3cc19977 -r 251cde2ad7fd tracext/hg/backend.py
a
|
b
|
|
33 | 33 | from trac.util import arity |
34 | 34 | from trac.util.datefmt import FixedOffset, utc |
35 | 35 | from trac.util.text import exception_to_unicode, shorten_line, to_unicode |
36 | | from trac.util.translation import domain_functions |
| 36 | from trac.util.translation import _, domain_functions |
37 | 37 | from trac.versioncontrol.api import Changeset, Node, Repository, \ |
38 | 38 | IRepositoryConnector, RepositoryManager, \ |
39 | 39 | NoSuchChangeset, NoSuchNode |
… |
… |
|
747 | 747 | def get_youngest_rev(self): |
748 | 748 | return self.changectx().hex() |
749 | 749 | |
| 750 | def get_path_history(self, path, rev=None, limit=None): |
| 751 | raise TracError(_("Unsupported \"Show only adds and deletes\"")) |
| 752 | |
750 | 753 | def previous_rev(self, rev, path=''): # FIXME: path ignored for now |
751 | 754 | for p in self.changectx(rev).parents(): |
752 | 755 | if p: |