/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/tests/per_repository/test_refresh_data.py

  • Committer: Parth Malwankar
  • Date: 2010-05-13 06:54:21 UTC
  • mfrom: (5225 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5241.
  • Revision ID: parth.malwankar@gmail.com-20100513065421-bde255i4ga5o3oqe
merged in changes from trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009 Canonical Ltd
 
1
# Copyright (C) 2009, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
90
90
 
91
91
    def test_refresh_data_after_fetch_new_data_visible(self):
92
92
        repo = self.make_repository('target')
93
 
        token = repo.lock_write()
 
93
        token = repo.lock_write().repository_token
94
94
        self.addCleanup(repo.unlock)
95
95
        self.fetch_new_revision_into_concurrent_instance(repo, token)
96
96
        repo.refresh_data()
103
103
        tree.add([''], ['root-id'])
104
104
        tree.commit('foo', rev_id='commit-in-target')
105
105
        repo = tree.branch.repository
106
 
        token = repo.lock_write()
 
106
        token = repo.lock_write().repository_token
107
107
        self.addCleanup(repo.unlock)
108
108
        repo.start_write_group()
109
109
        self.addCleanup(repo.abort_write_group)