~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_dirstate.py

Review feedback.

Show diffs side-by-side

added added

removed removed

Lines of Context:
571
571
            # Make sure everything is old enough
572
572
            state._sha_cutoff_time()
573
573
            state._cutoff_time += 10
574
 
            sha1sum = state.update_entry(entry, 'a-file', os.lstat('a-file'))
 
574
            sha1sum = dirstate.update_entry(state, entry, 'a-file', os.lstat('a-file'))
575
575
            # We should have gotten a real sha1
576
576
            self.assertEqual('ecc5374e9ed82ad3ea3b4d452ea995a5fd3e70e3',
577
577
                             sha1sum)
612
612
        state.lock_read()
613
613
        try:
614
614
            entry = state._get_entry(0, path_utf8='a-file')
615
 
            sha1sum = state.update_entry(entry, 'a-file', os.lstat('a-file'))
 
615
            sha1sum = dirstate.update_entry(state, entry, 'a-file', os.lstat('a-file'))
616
616
            # We should have gotten a real sha1
617
617
            self.assertEqual('ecc5374e9ed82ad3ea3b4d452ea995a5fd3e70e3',
618
618
                             sha1sum)