def __init__(self, branch, revision_id, config):
self.config = config
self.branch = branch
- self.repository = branch.repository
self._revision_id = revision_id
self.revision = None
self.revno = None
def _setup_revision_and_revno(self):
- self.revision = self.repository.get_revision(self._revision_id)
+ self.revision = self.branch.repository.get_revision(self._revision_id)
self.revno = self.branch.revision_id_to_revno(self._revision_id)
def _format(self):
"""Send the info to irkerd.
"""
self.branch.lock_read()
- self.repository.lock_read()
+ self.branch.repository.lock_read()
# These should become configurable at some point
default_server = 'localhost'
IRKER_PORT = 6659
finally:
sock.close()
finally:
- self.repository.unlock()
+ self.branch.repository.unlock()
self.branch.unlock()
opt_irker_channels = Option('irker_channels',