changeset 32:96c854b89f5c 1.0 tip

1.0.0.3dev: Add implementation for `get_path_history`, which will be an abstract method of the `Repository` base class in a future release of Trac.
author rjollos <ryan.j.ollos@gmail.com>
date Sat, 31 May 2014 09:37:41 -0700
parents 635936bdbe09
children
files tracext/hg/backend.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tracext/hg/backend.py	Fri May 30 06:20:59 2014 -0700
+++ b/tracext/hg/backend.py	Sat May 31 09:37:41 2014 -0700
@@ -33,7 +33,7 @@
 from trac.util import arity
 from trac.util.datefmt import FixedOffset, utc
 from trac.util.text import exception_to_unicode, shorten_line, to_unicode
-from trac.util.translation import domain_functions
+from trac.util.translation import _, domain_functions
 from trac.versioncontrol.api import Changeset, Node, Repository, \
                                     IRepositoryConnector, RepositoryManager, \
                                     NoSuchChangeset, NoSuchNode
@@ -750,6 +750,9 @@
     def get_youngest_rev(self):
         return self.changectx().hex()
 
+    def get_path_history(self, path, rev=None, limit=None):
+        raise TracError(_('Unsupported "Show only adds and deletes"'))
+
     def previous_rev(self, rev, path=''): # FIXME: path ignored for now
         for p in self.changectx(rev).parents():
             if p: