/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/export/__init__.py

  • Committer: James Westby
  • Date: 2009-02-20 20:10:12 UTC
  • mto: This revision was merged to the branch mainline in revision 4049.
  • Revision ID: jw+debian@jameswestby.net-20090220201012-y9wonjwu4ekt7iqe
Handle files that are not present in the tree when exporting (#174539)

When export is acting on a working tree (unusual) it may encounter files
that are missing. It should not try and export these.

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
        # .bzrignore and .bzrrules - do not export these
152
152
        if entry[0].startswith(".bzr"):
153
153
            continue
 
154
        if subdir is None:
 
155
            if not tree.has_filename(entry[0]):
 
156
                continue
 
157
        else:
 
158
            if not tree.has_filename(os.path.join(subdir, entry[0])):
 
159
                continue
154
160
        yield entry
155
161
 
156
162