view hgsubversion/layouts/single.py @ 1026:66395f232b7c

layouts: pull tag location list management into layout module We keep a list of locations within subversion where we look for tags that persists across runs. This pulls the logic for constructiong that list from config on first clone, and for mainting the list afterwards out of svnmeta and into layouts.
author David Schleimer <dschleimer@fb.com>
date Tue, 21 May 2013 16:29:18 -0700
parents 0ed7cf23e801
children 16045f6f3fef
line wrap: on
line source



import base

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

    def localname(self, path):
        return 'default'

    def remotename(self, branch):
        return ''

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

    def taglocations(self, meta_data_dir):
        return []