~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-14 23:42:30 UTC
  • mfrom: (5815.5.12 per-file-graph)
  • Revision ID: pqm@pqm.ubuntu.com-20110514234230-f8yy3myzrtp5sxt2
(jelmer) Add Repository.get_file_graph(). (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    static_tuple,
33
33
    symbol_versioning,
34
34
    urlutils,
 
35
    versionedfile,
35
36
    vf_repository,
36
37
    )
37
38
from bzrlib.branch import BranchReferenceFormat, BranchWriteLockResult
1136
1137
        return RemoteStreamSource(self, to_format)
1137
1138
 
1138
1139
    @needs_read_lock
 
1140
    def get_file_graph(self):
 
1141
        return graph.Graph(self.texts)
 
1142
 
 
1143
    @needs_read_lock
1139
1144
    def has_revision(self, revision_id):
1140
1145
        """True if this repository has a copy of the revision."""
1141
1146
        # Copy of bzrlib.repository.Repository.has_revision