~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/versioning.py

  • Committer: Martin Pool
  • Date: 2005-09-22 12:12:53 UTC
  • Revision ID: mbp@sourcefrog.net-20050922121253-eae2a3240ea5e493
- upgrade can no longer be done in current version branches
  so don't test it

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
                          b.add,
74
74
                          'foo/hello')
75
75
        
76
 
        self.check_and_upgrade()
 
76
        self.check_branch()
77
77
 
78
78
        
79
79
    def test_subdir_add(self):
107
107
        eq(run_bzr(['add']), 0)
108
108
        eq(list(b.unknowns()), [])
109
109
 
110
 
        self.check_and_upgrade()
111
 
 
112
 
 
113
 
    def check_and_upgrade(self):
 
110
        self.check_branch()
 
111
 
 
112
 
 
113
    def check_branch(self):
114
114
        """After all the above changes, run the check and upgrade commands.
115
115
 
116
116
        The upgrade should be a no-op."""
121
121
        from bzrlib.check import check
122
122
        check(b)
123
123
        
124
 
        debug('upgrade branch...')
125
 
        from bzrlib.upgrade import upgrade
126
 
        upgrade(b)
127
 
        
128
 
        debug('check branch...')
129
 
        from bzrlib.check import check
130
 
        check(b)
131
 
        
132
124
 
133
125
        
134
126