view hgsubversion/layouts/single.py @ 1542:08ea19b989c3 1.9

testedwith: add hg 4.4
author Augie Fackler <raf@durin42.com>
date Wed, 01 Nov 2017 22:37:11 -0400
parents 10c87b1dd653
children
line wrap: on
line source



import base

class SingleLayout(base.BaseLayout):
    """A layout with only the default branch"""

    @property
    def name(self):
        return 'single'

    def localname(self, path):
        return None

    def remotename(self, branch):
        return ''

    def remotepath(self, branch, subdir='/'):
        return subdir or '/'

    @property
    def taglocations(self):
        return []

    def get_path_tag(self, path, taglocations):
        return None

    def split_remote_name(self, path, known_branches):
        return '', path