# HG changeset patch # User Sean Farley # Date 1395678043 18000 # Node ID cb14dba562eb4eb4d7d12a680acf996366fd026f # Parent 8693c9558f1a8a8be5080458867a9f2ac4d28be1 svncommands: add svnmeta object This patch adds a svnmeta object that currently does nothing but will be used in upcoming patches to remove code duplication and unify svn meta data. diff --git a/hgsubversion/svncommands.py b/hgsubversion/svncommands.py --- a/hgsubversion/svncommands.py +++ b/hgsubversion/svncommands.py @@ -18,6 +18,7 @@ import svnrepo import util import svnexternals import verify +import svnmeta def updatemeta(ui, repo, args, **opts): @@ -53,6 +54,8 @@ def _buildmeta(ui, repo, args, partial=F raise hgutil.Abort('rebuildmeta takes 1 or no arguments') url = repo.ui.expandpath(dest or repo.ui.config('paths', 'default-push') or repo.ui.config('paths', 'default') or '') + + meta = svnmeta.SVNMeta(repo, skiperrorcheck=True) svnmetadir = os.path.join(repo.path, 'svn') if not os.path.exists(svnmetadir): os.makedirs(svnmetadir)