mercurial/subrepo.py
branchstable
changeset 34987 846942fd6d15
parent 34986 828cf35f1de6
child 34989 1a314176da9c
equal deleted inserted replaced
34986:828cf35f1de6 34987:846942fd6d15
   364     pathutil.pathauditor(repo.root)(path)
   364     pathutil.pathauditor(repo.root)(path)
   365     if repo.wvfs.islink(path):
   365     if repo.wvfs.islink(path):
   366         raise error.Abort(_("subrepo '%s' traverses symbolic link") % path)
   366         raise error.Abort(_("subrepo '%s' traverses symbolic link") % path)
   367 
   367 
   368 def _checktype(ui, kind):
   368 def _checktype(ui, kind):
   369     if kind not in ui.configlist('subrepos', 'allowed', ['hg', 'git', 'svn']):
   369     if kind not in ui.configlist('subrepos', 'allowed', ['hg']):
   370         raise error.Abort(_("subrepo type %s not allowed") % kind,
   370         raise error.Abort(_("subrepo type %s not allowed") % kind,
   371                           hint=_("see 'hg help config.subrepos' for details"))
   371                           hint=_("see 'hg help config.subrepos' for details"))
   372     if kind not in types:
   372     if kind not in types:
   373         raise error.Abort(_('unknown subrepo type %s') % kind)
   373         raise error.Abort(_('unknown subrepo type %s') % kind)
   374 
   374