##// END OF EJS Templates
merge with stable
Augie Fackler -
r35211:15d38e8f merge default
parent child Browse files
Show More
@@ -205,6 +205,13 b' class bzr_source(common.converter_source'
205 changes = []
205 changes = []
206 renames = {}
206 renames = {}
207 seen = set()
207 seen = set()
208
209 # Fall back to the deprecated attribute for legacy installations.
210 try:
211 inventory = origin.root_inventory
212 except AttributeError:
213 inventory = origin.inventory
214
208 # Process the entries by reverse lexicographic name order to
215 # Process the entries by reverse lexicographic name order to
209 # handle nested renames correctly, most specific first.
216 # handle nested renames correctly, most specific first.
210 curchanges = sorted(current.iter_changes(origin),
217 curchanges = sorted(current.iter_changes(origin),
@@ -229,10 +236,9 b' class bzr_source(common.converter_source'
229 renaming = paths[0] != paths[1]
236 renaming = paths[0] != paths[1]
230 # neither an add nor an delete - a move
237 # neither an add nor an delete - a move
231 # rename all directory contents manually
238 # rename all directory contents manually
232 subdir = origin.root_inventory.path2id(paths[0])
239 subdir = inventory.path2id(paths[0])
233 # get all child-entries of the directory
240 # get all child-entries of the directory
234 for name, entry in origin.root_inventory.iter_entries(
241 for name, entry in inventory.iter_entries(subdir):
235 subdir):
236 # hg does not track directory renames
242 # hg does not track directory renames
237 if entry.kind == 'directory':
243 if entry.kind == 'directory':
238 continue
244 continue
General Comments 0
You need to be logged in to leave comments. Login now