~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to knit.py

  • Committer: Martin Pool
  • Date: 2005-06-27 03:14:22 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mbp@sourcefrog.net-20050627031422-412032c782492879
Add Knit.dump method

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
        return list(self.getiter(index))
83
83
 
84
84
 
 
85
    def dump(self, to_file):
 
86
        from pprint import pprint
 
87
        print >>to_file, "knit lines:"
 
88
        pprint(self._l, to_file)
 
89
 
 
90
 
85
91
 
86
92
def update_knit(knit, new_vers, new_lines):
87
93
    """Return a new knit whose text matches new_lines.