Rev 4254: (ianc) chk_bytes on remote repos (Robert Collins) in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Mon Apr 6 03:47:33 BST 2009


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 4254
revision-id: pqm at pqm.ubuntu.com-20090406024730-9559ntr7fvmgug6r
parent: pqm at pqm.ubuntu.com-20090404000810-fqvkqdjx9s1h9ks3
parent: ian.clatworthy at canonical.com-20090406014203-il9pfp967ny4gpwi
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Mon 2009-04-06 03:47:30 +0100
message:
  (ianc) chk_bytes on remote repos (Robert Collins)
modified:
  bzrlib/remote.py               remote.py-20060720103555-yeeg2x51vn0rbtdp-1
    ------------------------------------------------------------
    revno: 4253.2.1
    revision-id: ian.clatworthy at canonical.com-20090406014203-il9pfp967ny4gpwi
    parent: pqm at pqm.ubuntu.com-20090404000810-fqvkqdjx9s1h9ks3
    parent: ian.clatworthy at canonical.com-20090406011732-xpzgawo0ihisqizd
    committer: Ian Clatworthy <ian.clatworthy at canonical.com>
    branch nick: ianc-integration
    timestamp: Mon 2009-04-06 11:42:03 +1000
    message:
      chk_bytes on remote repos (Robert Collins)
    modified:
      bzrlib/remote.py               remote.py-20060720103555-yeeg2x51vn0rbtdp-1
    ------------------------------------------------------------
    revno: 4253.1.1
    revision-id: ian.clatworthy at canonical.com-20090406011732-xpzgawo0ihisqizd
    parent: pqm at pqm.ubuntu.com-20090404000810-fqvkqdjx9s1h9ks3
    committer: Ian Clatworthy <ian.clatworthy at canonical.com>
    branch nick: bzr.bris-remote-chk-bytes
    timestamp: Mon 2009-04-06 11:17:32 +1000
    message:
      Add chk_bytes property to RemoteRepository
    modified:
      bzrlib/remote.py               remote.py-20060720103555-yeeg2x51vn0rbtdp-1
=== modified file 'bzrlib/remote.py'
--- a/bzrlib/remote.py	2009-04-03 02:08:31 +0000
+++ b/bzrlib/remote.py	2009-04-06 01:17:32 +0000
@@ -637,6 +637,16 @@
         return self._real_repository.abort_write_group(
             suppress_errors=suppress_errors)
 
+    @property
+    def chk_bytes(self):
+        """Decorate the real repository for now.
+
+        In the long term a full blown network facility is needed to avoid
+        creating a real repository object locally.
+        """
+        self._ensure_real()
+        return self._real_repository.chk_bytes
+
     def commit_write_group(self):
         """Complete a write group on the decorated repository.
 




More information about the bazaar-commits mailing list