Logo Search packages:      
Sourcecode: hgsubversion version File versions  Download package

def hgsubversion::svnmeta::SVNMeta::get_path_tag (   self,
  path 
)
If path could represent the path to a tag, returns the
potential (non-empty) tag name. Otherwise, returns None

Note that it's only a tag if it was copied from the path '' in a branch
(or tag) we have, for our purposes.

Definition at line 295 of file svnmeta.py.

                                :
        """If path could represent the path to a tag, returns the
        potential (non-empty) tag name. Otherwise, returns None

        Note that it's only a tag if it was copied from the path '' in a branch
        (or tag) we have, for our purposes.
        """
        if self.layout != 'single':
            path = self.normalize(path)
            for tagspath in self.tag_locations:
                if path.startswith(tagspath + '/'):
                    tag = path[len(tagspath) + 1:]
                    if tag:
                        return tag
        return None


Generated by  Doxygen 1.6.0   Back to index