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

  • Committer: James Westby
  • Date: 2008-07-31 19:38:13 UTC
  • mto: This revision was merged to the branch mainline in revision 3609.
  • Revision ID: jw+debian@jameswestby.net-20080731193813-z0u37e3l0j6u0xyj
Make ->file changes work as well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
324
324
        New file takes the permissions of any existing file with that id,
325
325
        unless mode_id is specified.
326
326
        """
 
327
        if not self._does_tree_kind_match(trans_id, 'file'):
 
328
            self._kind_change.add(trans_id)
327
329
        name = self._limbo_name(trans_id)
328
330
        f = open(name, 'wb')
329
331
        try:
391
393
        kind passed. Returns False otherwise.
392
394
        """
393
395
        try:
394
 
            if self.tree_kind(trans_id) == 'directory':
 
396
            if self.tree_kind(trans_id) == kind:
395
397
                return True
396
398
        except NoSuchFile:
397
399
            pass