changeset 418:92beeefeaf93

save metadata from one place
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 11 Jun 2009 18:48:43 +0200
parents 8630d1ebcdb9
children 3ed71e63f64c
files hgsubversion/hg_delta_editor.py hgsubversion/stupid.py hgsubversion/wrappers.py
diffstat 3 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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()
--- 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)