# HG changeset patch # User Sylvain Thénault # Date 1253697728 -7200 # Node ID c867a096e11c8a6a7218a6f3c08131e330c8e6c4 # Parent 47832374cf1432ea6b2bb7da5e5761619a2760ee access to repo through session diff -r 47832374cf14 -r c867a096e11c hooks/syncsession.py --- a/hooks/syncsession.py Wed Sep 23 11:20:29 2009 +0200 +++ b/hooks/syncsession.py Wed Sep 23 11:22:08 2009 +0200 @@ -87,7 +87,7 @@ def commit_event(self): """the observed connections pool has been commited""" try: - self.repo.close(self.cnxid) + self.session.repo.close(self.cnxid) except BadConnectionId: pass # already closed @@ -132,7 +132,7 @@ """the observed connections pool has been commited""" cwprop = self.cwprop if not cwprop.for_user: - self.repo.vreg['propertyvalues'][cwprop.pkey] = cwprop.value + self.session.vreg['propertyvalues'][cwprop.pkey] = cwprop.value # if for_user is set, update is handled by a ChangeCWPropertyOp operation