# HG changeset patch # User Dirkjan Ochtman # Date 1244738923 -7200 # Node ID 92beeefeaf936eab5e97efe1366df834e7ad4fbd # Parent 8630d1ebcdb96dc0b70fb49195e26eaa21e8ae54 save metadata from one place diff --git a/hgsubversion/hg_delta_editor.py b/hgsubversion/hg_delta_editor.py --- a/hgsubversion/hg_delta_editor.py +++ b/hgsubversion/hg_delta_editor.py @@ -259,7 +259,6 @@ class HgChangeReceiver(delta.Editor): continue self.meta.delbranch(branch, parent, rev) - self.meta.save() self.current.clear() # Here come all the actual editor methods diff --git a/hgsubversion/stupid.py b/hgsubversion/stupid.py --- a/hgsubversion/stupid.py +++ b/hgsubversion/stupid.py @@ -633,6 +633,3 @@ def convert_rev(ui, meta, svn, r, tbdelt if parent == node.nullid: continue meta.delbranch(b, parent, r) - - # save the changed metadata - meta.save() diff --git a/hgsubversion/wrappers.py b/hgsubversion/wrappers.py --- a/hgsubversion/wrappers.py +++ b/hgsubversion/wrappers.py @@ -261,6 +261,7 @@ def pull(repo, source, heads=[], force=F try: util.describe_revision(ui, r) pullfuns[have_replay](ui, meta, svn, r, tbdelta) + meta.save() converted = True except svnwrap.SubversionRepoCanNotReplay, e: #pragma: no cover ui.status('%s\n' % e.message)