/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/workingtree.py

  • Committer: Martin Pool
  • Date: 2007-03-01 11:21:42 UTC
  • mto: (2255.11.3 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: mbp@sourcefrog.net-20070301112142-blqdo0tmp0loms7y
WorkingTree._add only needs to lock the tree - avoids lock reentry error

Show diffs side-by-side

added added

removed removed

Lines of Context:
611
611
            mode = os.lstat(self.abspath(path)).st_mode
612
612
            return bool(stat.S_ISREG(mode) and stat.S_IEXEC & mode)
613
613
 
614
 
    @needs_write_lock
 
614
    @needs_tree_write_lock
615
615
    def _add(self, files, ids, kinds):
616
616
        """See MutableTree._add."""
617
617
        # TODO: Re-adding a file that is removed in the working copy