view hgsubversion/layouts/single.py @ 1295:9d5cff8d7f67

svnexternals: fix for Mercurial 3.3+ Mercurial rev 40e62fbd7356 renamed the '_ui' field on subrepos to 'ui'. Set 'ui' everywhere and use it to maintain compatibility across Mercurial versions.
author Siddharth Agarwal <sid0@fb.com>
date Mon, 29 Dec 2014 13:15:23 -0800
parents 7bbe120be193
children 10c87b1dd653
line wrap: on
line source



import base

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

    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