/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 bzrlib/knit.py

  • Committer: Robert Collins
  • Date: 2007-09-06 01:46:00 UTC
  • mto: (2801.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 2801.
  • Revision ID: robertc@robertcollins.net-20070906014600-zsqflovlwhc52gpv
Review feedback.

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
 
202
202
 
203
203
class PlainKnitContent(KnitContent):
204
 
    """Unannotated content."""
 
204
    """Unannotated content.
 
205
    
 
206
    When annotate[_iter] is called on this content, the same version is reported
 
207
    for all lines. Generally, annotate[_iter] is not useful on PlainKnitContent
 
208
    objects.
 
209
    """
205
210
 
206
211
    def __init__(self, lines, version_id):
207
212
        self._lines = lines
847
852
        if contains_whitespace(version_id):
848
853
            raise InvalidRevisionId(version_id, self.filename)
849
854
        self.check_not_reserved_id(version_id)
850
 
        # Technically this is a case of LBYL, but:
 
855
        # Technically this is a case of Look Before You Leap, but:
851
856
        # - for knits this saves wasted space in the error case
852
857
        # - for packs this avoids dead space in the pack
853
858
        # - it also avoids undetected poisoning attacks.