~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Andrew Bennetts
  • Date: 2009-10-29 05:49:32 UTC
  • mto: (4634.77.13 2.0)
  • mto: This revision was merged to the branch mainline in revision 4777.
  • Revision ID: andrew.bennetts@canonical.com-20091029054932-95cepoqi2oc3269v
Fix other bugs revealed by clearing chk_map page cache during blackbox tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2425
2425
    @display_command
2426
2426
    def run(self, filename):
2427
2427
        tree, relpath = WorkingTree.open_containing(filename)
 
2428
        file_id = tree.path2id(relpath)
2428
2429
        b = tree.branch
2429
 
        file_id = tree.path2id(relpath)
2430
 
        for revno, revision_id, what in log.find_touching_revisions(b, file_id):
2431
 
            self.outf.write("%6d %s\n" % (revno, what))
 
2430
        b.lock_read()
 
2431
        try:
 
2432
            touching_revs = log.find_touching_revisions(b, file_id)
 
2433
            for revno, revision_id, what in touching_revs:
 
2434
                self.outf.write("%6d %s\n" % (revno, what))
 
2435
        finally:
 
2436
            b.unlock()
2432
2437
 
2433
2438
 
2434
2439
class cmd_ls(Command):