Advertisement
Guest User

bzr bug 185211

a guest
Dec 19th, 2011
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. === modified file 'bzrlib/dirstate.py'
  2. --- bzrlib/dirstate.py 2011-09-28 16:50:40 +0000
  3. +++ bzrlib/dirstate.py 2011-12-19 13:00:09 +0000
  4. @@ -1559,16 +1559,21 @@
  5. else:
  6. source_path = child_basename
  7. if new_path_utf8:
  8. - target_path = new_path_utf8 + source_path[len(old_path):]
  9. + target_path_utf8 = new_path_utf8 \
  10. + + source_path[len(old_path_utf8):]
  11. else:
  12. - if old_path == '':
  13. + if old_path_utf8 == '':
  14. raise AssertionError("cannot rename directory to"
  15. " itself")
  16. - target_path = source_path[len(old_path) + 1:]
  17. - adds.append((None, target_path, entry[0][2], entry[1][1], False))
  18. - deletes.append(
  19. - (source_path, target_path, entry[0][2], None, False))
  20. - deletes.append((old_path_utf8, new_path, file_id, None, False))
  21. + target_path_utf8 = source_path[len(old_path_utf8) + 1:]
  22. + adds.append((None, target_path_utf8,
  23. + entry[0][2], entry[1][1], False))
  24. + deletes.append((source_path, target_path_utf8, entry[0][2],
  25. + None, False))
  26. +
  27. + deletes.append((old_path_utf8, new_path_utf8, file_id,
  28. + None, False))
  29. +
  30. self._check_delta_ids_absent(new_ids, delta, 1)
  31. try:
  32. # Finish expunging deletes/first half of renames.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement