summaryrefslogtreecommitdiff
path: root/exporter.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-08-17 14:32:38 +0200
committerJelmer Vernooij <jelmer@samba.org>2011-08-17 14:32:38 +0200
commit4b703d70637d6fdd84dacdc2408137de782f6be5 (patch)
treee51861c068e8013acca864c7000de7b04e668385 /exporter.py
parent136d5a75dcb5c1b3e057e069efeae5ef14f31dba (diff)
downloadbzr-fastimport-4b703d70637d6fdd84dacdc2408137de782f6be5.tar.gz
Support exporting files that are changed into directories.
Diffstat (limited to 'exporter.py')
-rw-r--r--exporter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/exporter.py b/exporter.py
index cc9452b..0a6db67 100644
--- a/exporter.py
+++ b/exporter.py
@@ -487,7 +487,7 @@ class BzrFastExporter(object):
# Renaming a directory implies all children must be renamed.
# Note: changes_from() doesn't handle this
- if kind == 'directory':
+ if kind == 'directory' and tree_old.kind(id_) == 'directory':
for p, e in tree_old.inventory.iter_entries_by_dir(from_dir=id_):
if e.kind == 'directory' and self.plain_format:
continue