~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testknit.py

  • Committer: Martin Pool
  • Date: 2005-06-27 04:26:07 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mbp@sourcefrog.net-20050627042607-5b203e23a1580d79
Start computing a delta to insert a new revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        k.dump(self.TEST_LOG)
70
70
 
71
71
 
 
72
 
 
73
class Delta1(TestBase):
 
74
    """Detection of changes prior to inserting new revision."""
 
75
    def runTest(self):
 
76
        from pprint import pformat
 
77
 
 
78
        k = Knit()
 
79
        k.add(['line 1'])
 
80
 
 
81
        changes = k._delta(set([0]),
 
82
                           ['line 1',
 
83
                            'new line'])
 
84
 
 
85
        self.log('raw changes: ' + pformat(changes))
 
86
 
 
87
 
72
88
class MatchedLine(TestBase):
73
89
    """Store a revision that adds one line to the original.
74
90
 
75
91
    Look at the annotations to make sure that the first line is matched
76
92
    and not stored repeatedly."""
77
93
    def runTest(self):
78
 
        return
 
94
        return ########################## SKIPPED
79
95
        k = Knit()
80
96
 
81
97
        k.add(['line 1'])