Mercurial > hgsubversion
view hgsubversion/layouts/single.py @ 1515:106716ed2ed0
subrepo: add missing arg to dirty()
Upstream Mercurial has added a new 'missing' argument to the dirty function. We
need to add it as well. The default argument should mean this is backwards
compatible with older Mercurials.
I don't understand the subrepo or hgsubverison code 100%, so this patch is my
best attempt at a fix.
author | Durham Goode <durham@fb.com> |
---|---|
date | Tue, 11 Jul 2017 16:37:57 -0700 |
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