diff hgsubversion/layouts/base.py @ 1027:16045f6f3fef

layouts: pull svn path -> potential tag name mapping into layouts
author David Schleimer <dschleimer@fb.com>
date Wed, 26 Jun 2013 14:40:31 -0500
parents 66395f232b7c
children 513f2b607b06
line wrap: on
line diff
--- a/hgsubversion/layouts/base.py
+++ b/hgsubversion/layouts/base.py
@@ -49,3 +49,17 @@ class BaseLayout(object):
 
         """
         self.__unimplemented('tagpaths')
+
+    def get_path_tag(self, path, taglocations):
+        """Get the tag name for the given svn path, if it is a possible tag.
+
+        This function should return None if the path cannot be a tag.
+        Returning a non-empty sring does not imply that the path is a
+        tag, only that it is a candidate to be a tag.  Returning an
+        empty string is an error.
+
+        Path should be relative to the repo url.
+        taglocations should be as returned by self.taglocations()
+
+        """
+        self.__unimplemented('get_path_tag')