Commits  committed 0260960

be more careful about commit/rollback on the store

  • Participants
  • Parent commits 901cf0a

Comments (0)

Files changed (2)

File ordf/handler/

         ident = get_identifier(k)
         orig = Graph(, identifier=ident)
         new = Graph(identifier=ident)
-        for statement in orig.triples((None, None, None)):
-            new.add(statement)
+        new += orig
+        orig.rollback()
         return new
     def __setitem__(self, k, g):
         assert isinstance(g, _Graph)
         old.remove((None, None, None))
         for statement in g.triples((None, None, None)):
+        old.commit()
         if hasattr(, "sync"):
     def __delitem__(self, k):
         old = Graph(, identifier=get_identifier(k))
         old.remove((None, None, None))
+        old.commit()
         if hasattr(, "sync"):
     def append(self, g):
         old = Graph(, identifier=g.identifier)
         old += g
+        old.commit()
         if hasattr(, "sync"):
 from setuptools import setup, find_packages
 import sys, os
-version = '0.26'
+version = '0.27'
     from mercurial import ui, hg, error