##// 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 205 changes = []
206 206 renames = {}
207 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 215 # Process the entries by reverse lexicographic name order to
209 216 # handle nested renames correctly, most specific first.
210 217 curchanges = sorted(current.iter_changes(origin),
@@ -229,10 +236,9 b' class bzr_source(common.converter_source'
229 236 renaming = paths[0] != paths[1]
230 237 # neither an add nor an delete - a move
231 238 # rename all directory contents manually
232 subdir = origin.root_inventory.path2id(paths[0])
239 subdir = inventory.path2id(paths[0])
233 240 # get all child-entries of the directory
234 for name, entry in origin.root_inventory.iter_entries(
235 subdir):
241 for name, entry in inventory.iter_entries(subdir):
236 242 # hg does not track directory renames
237 243 if entry.kind == 'directory':
238 244 continue
General Comments 0
You need to be logged in to leave comments. Login now