/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/git/annotate.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-01-26 04:46:18 UTC
  • mfrom: (7463.1.3 cf-size)
  • Revision ID: breezy.the.bot@gmail.com-20200126044618-y2p8kxo82sop30bw
Add a size attribute to ContentFactory.

Merged from https://code.launchpad.net/~jelmer/brz/cf-size/+merge/378080

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        self.storage_kind = 'git-blob'
57
57
        self.parents = None
58
58
        self.blob_id = blob_id
 
59
        self.size = None
59
60
 
60
61
    def get_bytes_as(self, storage_kind):
61
62
        if storage_kind == 'fulltext':
87
88
        self.key = (path, revision)
88
89
        self.storage_kind = 'absent'
89
90
        self.parents = None
 
91
        self.size = None
90
92
 
91
93
    def get_bytes_as(self, storage_kind):
92
94
        raise ValueError