# HG changeset patch # User Augie Fackler # Date 1456974000 18000 # Node ID 2ae4fb5bfab90f93ebf074e382798a7d2e67137a # Parent 717bf096197ecbd5c35fac899883db2c35fd21fe svncommands: cope with aa73d6a5d9ea which removed optionalrepo We manually set the optionalrepo attr rather than migrate to the decorator form. Soon we should do that migration. diff --git a/hgsubversion/__init__.py b/hgsubversion/__init__.py --- a/hgsubversion/__init__.py +++ b/hgsubversion/__init__.py @@ -195,7 +195,8 @@ hg.schemes.update({ 'file': _lookup, 'ht 'svn': svnrepo, 'svn+ssh': svnrepo, 'svn+http': svnrepo, 'svn+https': svnrepo}) -commands.optionalrepo += ' svn' +if hgutil.safehasattr(commands, 'optionalrepo'): + commands.optionalrepo += ' svn' cmdtable = { "svn": diff --git a/hgsubversion/svncommands.py b/hgsubversion/svncommands.py --- a/hgsubversion/svncommands.py +++ b/hgsubversion/svncommands.py @@ -490,6 +490,9 @@ def svn(ui, repo, subcommand, *args, **o else: raise +svn.optionalrepo=True +svn.norepo = False + table = { 'genignore': genignore, 'info': info,