~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-01-11 20:10:31 UTC
  • mfrom: (5588.3.1 cmd-modified-relocking)
  • Revision ID: pqm@pqm.ubuntu.com-20110111201031-0i87t0t3kyhitwv4
(spiv) Fix -Drelock warnings in cmd_modified. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2050
2050
    @display_command
2051
2051
    def run(self, null=False, directory=u'.'):
2052
2052
        tree = WorkingTree.open_containing(directory)[0]
 
2053
        self.add_cleanup(tree.lock_read().unlock)
2053
2054
        td = tree.changes_from(tree.basis_tree())
 
2055
        self.cleanup_now()
2054
2056
        for path, id, kind, text_modified, meta_modified in td.modified:
2055
2057
            if null:
2056
2058
                self.outf.write(path + '\0')